X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..6da8eee196a81d1626391916b6119f3c6ee63ad8:/docs/latex/wx/statbmp.tex diff --git a/docs/latex/wx/statbmp.tex b/docs/latex/wx/statbmp.tex index 3c9922ebfb..3dd9588c76 100644 --- a/docs/latex/wx/statbmp.tex +++ b/docs/latex/wx/statbmp.tex @@ -1,6 +1,10 @@ \section{\class{wxStaticBitmap}}\label{wxstaticbitmap} -A static bitmap control displays a bitmap. +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. \wxheading{Derived from} @@ -13,6 +17,10 @@ A static bitmap control displays a bitmap. +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{Window styles} There are no special styles for this control. @@ -30,6 +38,7 @@ palette problems. \latexignore{\rtfignore{\wxheading{Members}}} + \membersection{wxStaticBitmap::wxStaticBitmap}\label{wxstaticbitmapconstr} \func{}{wxStaticBitmap}{\void} @@ -37,7 +46,7 @@ palette problems. Default constructor. \func{}{wxStaticBitmap}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp -\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp +\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp \param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}} Constructor, creating and showing a text control. @@ -62,24 +71,42 @@ Constructor, creating and showing a text control. \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 wxPoint\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp +\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \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} +\constfunc{wxBitmap}{GetBitmap}{\void} -Returns a reference to the label bitmap. +Returns the bitmap currently used in the control. Notice that this method can +be called even if \helpref{SetIcon}{wxstaticbitmapseticon} had been used. \wxheading{See also} \helpref{wxStaticBitmap::SetBitmap}{wxstaticbitmapsetbitmap} + +\membersection{wxStaticBitmap::GetIcon}\label{wxstaticbitmapgeticon} + +\constfunc{wxIcon}{GetIcon}{\void} + +Returns the icon currently used in the control. Notice that this method can +only be called if \helpref{SetIcon}{wxstaticbitmapseticon} had been used: an icon +can't be retrieved from the control if a bitmap had been set (using +\helpref{SetBitmap}{wxstaticbitmapsetbitmap}). + +\wxheading{See also} + +\helpref{wxStaticBitmap::SetIcon}{wxstaticbitmapseticon} + + \membersection{wxStaticBitmap::SetBitmap}\label{wxstaticbitmapsetbitmap} \func{virtual void}{SetBitmap}{\param{const wxBitmap\& }{ label}} @@ -94,3 +121,18 @@ Sets the bitmap label. \helpref{wxStaticBitmap::GetBitmap}{wxstaticbitmapgetbitmap} + +\membersection{wxStaticBitmap::SetIcon}\label{wxstaticbitmapseticon} + +\func{virtual void}{SetIcon}{\param{const wxIcon\& }{ label}} + +Sets the label to the given icon. + +\wxheading{Parameters} + +\docparam{label}{The new icon.} + +\wxheading{See also} + +\helpref{wxStaticBitmap::GetIcon}{wxstaticbitmapgeticon} +