eaaa6a06a2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@92 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
93 lines
2.5 KiB
TeX
93 lines
2.5 KiB
TeX
\section{\class{wxStaticBitmap}}\label{wxstaticbitmap}
|
|
|
|
A static bitmap control displays a bitmap.
|
|
|
|
\wxheading{Derived from}
|
|
|
|
\helpref{wxControl}{wxcontrol}\\
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
\wxheading{Window styles}
|
|
|
|
There are no special styles for this control.
|
|
|
|
See also \helpref{window styles overview}{windowstyles}.
|
|
|
|
\wxheading{See also}
|
|
|
|
\helpref{wxStaticBitmap}{wxstaticbitmap}, \helpref{wxStaticBox}{wxstaticbox}
|
|
|
|
\wxheading{Remarks}
|
|
|
|
The bitmap to be displayed should have a small number of colours, such as 16, to avoid
|
|
palette problems.
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
\membersection{wxStaticBitmap::wxStaticBitmap}\label{wxstaticbitmapconstr}
|
|
|
|
\func{}{wxStaticBitmap}{\void}
|
|
|
|
Default constructor.
|
|
|
|
\func{}{wxStaticBitmap}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
|
|
\param{const wxBitmap\& }{label = ``"}, \param{const wxPosition\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
|
|
\param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}}
|
|
|
|
Constructor, creating and showing a text control.
|
|
|
|
\wxheading{Parameters}
|
|
|
|
\docparam{parent}{Parent window. Should not be NULL.}
|
|
|
|
\docparam{id}{Control identifier. A value of -1 denotes a default value.}
|
|
|
|
\docparam{label}{Bitmap label.}
|
|
|
|
\docparam{pos}{Window position.}
|
|
|
|
\docparam{size}{Window size.}
|
|
|
|
\docparam{style}{Window style. See \helpref{wxStaticBitmap}{wxstaticbitmap}.}
|
|
|
|
\docparam{name}{Window name.}
|
|
|
|
\wxheading{See also}
|
|
|
|
\helpref{wxStaticBitmap::Create}{wxstaticbitmapcreate}
|
|
|
|
\membersection{wxStaticBitmap::Create}\label{wxstaticbitmapcreate}
|
|
|
|
\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
|
|
\param{const wxBitmap\& }{label = ``"}, \param{const wxPosition\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
|
|
\param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}}
|
|
|
|
Creation function, for two-step construction. For details see \helpref{wxStaticBitmap::wxStaticBitmap}{wxstaticbitmapconstr}.
|
|
|
|
\membersection{wxStaticBitmap::GetBitmap}\label{wxstaticbitmapgetbitmap}
|
|
|
|
\constfunc{wxBitmap\&}{GetBitmap}{\void}
|
|
|
|
Returns a reference to the label bitmap.
|
|
|
|
\wxheading{See also}
|
|
|
|
\helpref{wxStaticBitmap::SetBitmap}{wxstaticbitmapsetbitmap}
|
|
|
|
\membersection{wxStaticBitmap::SetBitmap}\label{wxstaticbitmapsetbitmap}
|
|
|
|
\func{virtual void}{SetBitmap}{\param{const wxBitmap\& }{ label}}
|
|
|
|
Sets the bitmap label.
|
|
|
|
\wxheading{Parameters}
|
|
|
|
\docparam{label}{The new bitmap.}
|
|
|
|
\wxheading{See also}
|
|
|
|
\docparam{wxStaticBitmap::GetBitmap}{wxstaticbitmapgetbitmap}
|
|
|