1 \section{\class{wxStaticBitmap
}}\label{wxstaticbitmap
}
3 A static bitmap control displays a bitmap. It is meant for display of the
4 small icons in the dialog boxes and is not meant to be a general purpose image
5 display control. In particular, under Windows
9x the size of bitmap is limited
6 to $
64*
64$ pixels and thus you should use your own control if you want to
7 display larger images portably.
9 \wxheading{Derived from
}
11 \helpref{wxControl
}{wxcontrol
}\\
12 \helpref{wxWindow
}{wxwindow
}\\
13 \helpref{wxEvtHandler
}{wxevthandler
}\\
14 \helpref{wxObject
}{wxobject
}
16 \wxheading{Include files
}
22 \helpref{wxCore
}{librarieslist
}
24 \wxheading{Window styles
}
26 There are no special styles for this control.
28 See also
\helpref{window styles overview
}{windowstyles
}.
32 \helpref{wxStaticBitmap
}{wxstaticbitmap
},
\helpref{wxStaticBox
}{wxstaticbox
}
36 The bitmap to be displayed should have a small number of colours, such as
16, to avoid
39 \latexignore{\rtfignore{\wxheading{Members
}}}
42 \membersection{wxStaticBitmap::wxStaticBitmap
}\label{wxstaticbitmapconstr
}
44 \func{}{wxStaticBitmap
}{\void}
48 \func{}{wxStaticBitmap
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{ id
},
\rtfsp
49 \param{const wxBitmap\&
}{label
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
50 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticBitmap"
}}
52 Constructor, creating and showing a text control.
54 \wxheading{Parameters
}
56 \docparam{parent
}{Parent window. Should not be NULL.
}
58 \docparam{id
}{Control identifier. A value of -
1 denotes a default value.
}
60 \docparam{label
}{Bitmap label.
}
62 \docparam{pos
}{Window position.
}
64 \docparam{size
}{Window size.
}
66 \docparam{style
}{Window style. See
\helpref{wxStaticBitmap
}{wxstaticbitmap
}.
}
68 \docparam{name
}{Window name.
}
72 \helpref{wxStaticBitmap::Create
}{wxstaticbitmapcreate
}
75 \membersection{wxStaticBitmap::Create
}\label{wxstaticbitmapcreate
}
77 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{ id
},
\rtfsp
78 \param{const wxBitmap\&
}{label
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
79 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticBitmap"
}}
81 Creation function, for two-step construction. For details see
\helpref{wxStaticBitmap::wxStaticBitmap
}{wxstaticbitmapconstr
}.
84 \membersection{wxStaticBitmap::GetBitmap
}\label{wxstaticbitmapgetbitmap
}
86 \constfunc{wxBitmap
}{GetBitmap
}{\void}
88 Returns the bitmap currently used in the control. Notice that this method can
89 be called even if
\helpref{SetIcon
}{wxstaticbitmapseticon
} had been used.
93 \helpref{wxStaticBitmap::SetBitmap
}{wxstaticbitmapsetbitmap
}
96 \membersection{wxStaticBitmap::GetIcon
}\label{wxstaticbitmapgeticon
}
98 \constfunc{wxIcon
}{GetIcon
}{\void}
100 Returns the icon currently used in the control. Notice that this method can
101 only be called if
\helpref{SetIcon
}{wxstaticbitmapseticon
} had been used: an icon
102 can't be retrieved from the control if a bitmap had been set (using
103 \helpref{SetBitmap
}{wxstaticbitmapsetbitmap
}).
107 \helpref{wxStaticBitmap::SetIcon
}{wxstaticbitmapseticon
}
110 \membersection{wxStaticBitmap::SetBitmap
}\label{wxstaticbitmapsetbitmap
}
112 \func{virtual void
}{SetBitmap
}{\param{const wxBitmap\&
}{ label
}}
114 Sets the bitmap label.
116 \wxheading{Parameters
}
118 \docparam{label
}{The new bitmap.
}
122 \helpref{wxStaticBitmap::GetBitmap
}{wxstaticbitmapgetbitmap
}
125 \membersection{wxStaticBitmap::SetIcon
}\label{wxstaticbitmapseticon
}
127 \func{virtual void
}{SetIcon
}{\param{const wxIcon\&
}{ label
}}
129 Sets the label to the given icon.
131 \wxheading{Parameters
}
133 \docparam{label
}{The new icon.
}
137 \helpref{wxStaticBitmap::GetIcon
}{wxstaticbitmapgeticon
}