]>
git.saurik.com Git - wxWidgets.git/blob - interface/statbmp.h
c5cb6b3bbae928548dc4265b0f24cd132e5f03bc
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxStaticBitmap class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 A static bitmap control displays a bitmap. It is meant for display of the
14 small icons in the dialog boxes and is not meant to be a general purpose image
15 display control. In particular, under Windows 9x the size of bitmap is limited
16 to 64*64 pixels and thus you should use your own control if you want to
17 display larger images portably.
21 @appearance{staticbitmap.png}
24 wxStaticBitmap, wxStaticBox
26 class wxStaticBitmap
: public wxControl
31 Constructor, creating and showing a static bitmap control.
34 Parent window. Should not be @NULL.
37 Control identifier. A value of -1 denotes a default value.
49 Window style. See wxStaticBitmap.
57 wxStaticBitmap(wxWindow
* parent
, wxWindowID id
,
58 const wxBitmap
& label
,
59 const wxPoint
& pos
= wxDefaultPosition
,
60 const wxSize
& size
= wxDefaultSize
,
62 const wxString
& name
= "staticBitmap");
66 Creation function, for two-step construction. For details see wxStaticBitmap().
68 bool Create(wxWindow
* parent
, wxWindowID id
,
69 const wxBitmap
& label
,
70 const wxPoint
& pos
= wxDefaultPosition
,
71 const wxSize
& size
= wxDefaultSize
,
73 const wxString
& name
= "staticBitmap");
76 Returns the bitmap currently used in the control. Notice that this method can
77 be called even if SetIcon() had been used.
84 Returns the icon currently used in the control. Notice that this method can
85 only be called if SetIcon() had been used: an icon
86 can't be retrieved from the control if a bitmap had been set (using
87 wxStaticBitmap::SetBitmap).
94 Sets the bitmap label.
101 virtual void SetBitmap(const wxBitmap
& label
);
104 Sets the label to the given icon.
109 virtual void SetIcon(const wxIcon
& label
);