1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxStaticBitmap}}\label{wxstaticbitmap}
|
|
|
|
|
2004-03-01 15:54:59 -05:00
|
|
|
A static bitmap control displays a bitmap. It is meant for display of the
|
|
|
|
small icons in the dialog boxes and is not meant to be a general purpose image
|
|
|
|
display control. In particular, under Windows 9x the size of bitmap is limited
|
|
|
|
to $64*64$ pixels and thus you should use your own control if you want to
|
|
|
|
display larger images portably.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxControl}{wxcontrol}\\
|
|
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/statbmp.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\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}}}
|
|
|
|
|
2004-03-01 15:54:59 -05:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxStaticBitmap::wxStaticBitmap}\label{wxstaticbitmapconstr}
|
|
|
|
|
|
|
|
\func{}{wxStaticBitmap}{\void}
|
|
|
|
|
|
|
|
Default constructor.
|
|
|
|
|
1998-06-14 08:11:50 -04:00
|
|
|
\func{}{wxStaticBitmap}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
|
2002-12-04 09:11:26 -05:00
|
|
|
\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
|
1998-06-14 08:11:50 -04:00
|
|
|
\param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
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}
|
|
|
|
|
2004-03-01 15:54:59 -05:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxStaticBitmap::Create}\label{wxstaticbitmapcreate}
|
|
|
|
|
1998-06-14 08:11:50 -04:00
|
|
|
\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
|
2002-12-04 09:11:26 -05:00
|
|
|
\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
|
1998-06-14 08:11:50 -04:00
|
|
|
\param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Creation function, for two-step construction. For details see \helpref{wxStaticBitmap::wxStaticBitmap}{wxstaticbitmapconstr}.
|
|
|
|
|
2004-03-01 15:54:59 -05:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxStaticBitmap::GetBitmap}\label{wxstaticbitmapgetbitmap}
|
|
|
|
|
|
|
|
\constfunc{wxBitmap\&}{GetBitmap}{\void}
|
|
|
|
|
|
|
|
Returns a reference to the label bitmap.
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxStaticBitmap::SetBitmap}{wxstaticbitmapsetbitmap}
|
|
|
|
|
2004-03-01 15:54:59 -05:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\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}
|
|
|
|
|
2000-03-14 19:21:49 -05:00
|
|
|
\helpref{wxStaticBitmap::GetBitmap}{wxstaticbitmapgetbitmap}
|
1998-05-20 10:25:30 -04:00
|
|
|
|