]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/statbmp.h
Fix errors in handling of maximum field in wxGenericProgressDialog.
[wxWidgets.git] / interface / wx / statbmp.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: statbmp.h
e54c96f1 3// Purpose: interface of wxStaticBitmap
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
526954c5 6// Licence: wxWindows licence
23324ae1
FM
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxStaticBitmap
7c913512 11
4701dc09
FM
12 A static bitmap control displays a bitmap. Native implementations on some
13 platforms are only meant for display of the small icons in the dialog
a30e7029
VZ
14 boxes. In particular, under Windows 9x the size of bitmap is limited
15 to 64*64 pixels.
4701dc09
FM
16
17 If you want to display larger images portably, you may use generic
18 implementation wxGenericStaticBitmap declared in \<wx/generic/statbmpg.h\>.
7c913512 19
23324ae1
FM
20 @library{wxcore}
21 @category{ctrl}
7e59b885 22 @appearance{staticbitmap.png}
7c913512 23
e54c96f1 24 @see wxStaticBitmap, wxStaticBox
23324ae1
FM
25*/
26class wxStaticBitmap : public wxControl
27{
28public:
671600d8
RR
29 /**
30 Default constructor
31 */
32 wxStaticBitmap();
4701dc09 33
23324ae1
FM
34 /**
35 Constructor, creating and showing a static bitmap control.
3c4f71cc 36
7c913512 37 @param parent
4cc4bfaf 38 Parent window. Should not be @NULL.
7c913512 39 @param id
4cc4bfaf 40 Control identifier. A value of -1 denotes a default value.
7c913512 41 @param label
4cc4bfaf 42 Bitmap label.
7c913512 43 @param pos
4cc4bfaf 44 Window position.
7c913512 45 @param size
4cc4bfaf 46 Window size.
7c913512 47 @param style
4cc4bfaf 48 Window style. See wxStaticBitmap.
7c913512 49 @param name
4cc4bfaf 50 Window name.
3c4f71cc 51
4cc4bfaf 52 @see Create()
23324ae1 53 */
7c913512
FM
54 wxStaticBitmap(wxWindow* parent, wxWindowID id,
55 const wxBitmap& label,
56 const wxPoint& pos = wxDefaultPosition,
57 const wxSize& size = wxDefaultSize,
58 long style = 0,
11e3af6e 59 const wxString& name = wxStaticBitmapNameStr);
23324ae1
FM
60
61 /**
62 Creation function, for two-step construction. For details see wxStaticBitmap().
63 */
43c48e1e 64 bool Create(wxWindow* parent, wxWindowID id, const wxBitmap& label,
23324ae1 65 const wxPoint& pos = wxDefaultPosition,
43c48e1e
FM
66 const wxSize& size = wxDefaultSize, long style = 0,
67 const wxString& name = wxStaticBitmapNameStr);
23324ae1
FM
68
69 /**
4701dc09
FM
70 Returns the bitmap currently used in the control.
71 Notice that this method can be called even if SetIcon() had been used.
3c4f71cc 72
4cc4bfaf 73 @see SetBitmap()
23324ae1 74 */
adaaa686 75 virtual wxBitmap GetBitmap() const;
23324ae1
FM
76
77 /**
4701dc09
FM
78 Returns the icon currently used in the control.
79 Notice that this method can only be called if SetIcon() had been used: an icon
80 can't be retrieved from the control if a bitmap had been set
81 (using wxStaticBitmap::SetBitmap).
3c4f71cc 82
4cc4bfaf 83 @see SetIcon()
23324ae1 84 */
adaaa686 85 virtual wxIcon GetIcon() const;
23324ae1
FM
86
87 /**
88 Sets the bitmap label.
3c4f71cc 89
7c913512 90 @param label
4cc4bfaf 91 The new bitmap.
3c4f71cc 92
4cc4bfaf 93 @see GetBitmap()
23324ae1
FM
94 */
95 virtual void SetBitmap(const wxBitmap& label);
96
97 /**
98 Sets the label to the given icon.
3c4f71cc 99
7c913512 100 @param label
4cc4bfaf 101 The new icon.
23324ae1
FM
102 */
103 virtual void SetIcon(const wxIcon& label);
104};
e54c96f1 105