]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/statbmp.tex
Added periods
[wxWidgets.git] / docs / latex / wx / statbmp.tex
CommitLineData
a660d684
KB
1\section{\class{wxStaticBitmap}}\label{wxstaticbitmap}
2
68cb6481
VZ
3A static bitmap control displays a bitmap. It is meant for display of the
4small icons in the dialog boxes and is not meant to be a general purpose image
5display control. In particular, under Windows 9x the size of bitmap is limited
6to $64*64$ pixels and thus you should use your own control if you want to
7display larger images portably.
a660d684
KB
8
9\wxheading{Derived from}
10
11\helpref{wxControl}{wxcontrol}\\
12\helpref{wxWindow}{wxwindow}\\
13\helpref{wxEvtHandler}{wxevthandler}\\
14\helpref{wxObject}{wxobject}
15
954b8ae6
JS
16\wxheading{Include files}
17
18<wx/statbmp.h>
19
a7af285d
VZ
20\wxheading{Library}
21
22\helpref{wxCore}{librarieslist}
23
a660d684
KB
24\wxheading{Window styles}
25
26There are no special styles for this control.
27
28See also \helpref{window styles overview}{windowstyles}.
29
30\wxheading{See also}
31
32\helpref{wxStaticBitmap}{wxstaticbitmap}, \helpref{wxStaticBox}{wxstaticbox}
33
34\wxheading{Remarks}
35
36The bitmap to be displayed should have a small number of colours, such as 16, to avoid
37palette problems.
38
39\latexignore{\rtfignore{\wxheading{Members}}}
40
68cb6481 41
a660d684
KB
42\membersection{wxStaticBitmap::wxStaticBitmap}\label{wxstaticbitmapconstr}
43
44\func{}{wxStaticBitmap}{\void}
45
46Default constructor.
47
eaaa6a06 48\func{}{wxStaticBitmap}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
a1a77e0c 49\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
eaaa6a06 50\param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}}
a660d684 51
7d3e8dce 52Constructor, creating and showing a static bitmap control.
a660d684
KB
53
54\wxheading{Parameters}
55
56\docparam{parent}{Parent window. Should not be NULL.}
57
58\docparam{id}{Control identifier. A value of -1 denotes a default value.}
59
60\docparam{label}{Bitmap label.}
61
62\docparam{pos}{Window position.}
63
64\docparam{size}{Window size.}
65
66\docparam{style}{Window style. See \helpref{wxStaticBitmap}{wxstaticbitmap}.}
67
68\docparam{name}{Window name.}
69
70\wxheading{See also}
71
72\helpref{wxStaticBitmap::Create}{wxstaticbitmapcreate}
73
68cb6481 74
a660d684
KB
75\membersection{wxStaticBitmap::Create}\label{wxstaticbitmapcreate}
76
eaaa6a06 77\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
a1a77e0c 78\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
eaaa6a06 79\param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}}
a660d684
KB
80
81Creation function, for two-step construction. For details see \helpref{wxStaticBitmap::wxStaticBitmap}{wxstaticbitmapconstr}.
82
68cb6481 83
a660d684
KB
84\membersection{wxStaticBitmap::GetBitmap}\label{wxstaticbitmapgetbitmap}
85
a44fb285 86\constfunc{wxBitmap}{GetBitmap}{\void}
a660d684 87
a44fb285
VZ
88Returns the bitmap currently used in the control. Notice that this method can
89be called even if \helpref{SetIcon}{wxstaticbitmapseticon} had been used.
a660d684
KB
90
91\wxheading{See also}
92
93\helpref{wxStaticBitmap::SetBitmap}{wxstaticbitmapsetbitmap}
94
68cb6481 95
87b66c28 96\membersection{wxStaticBitmap::GetIcon}\label{wxstaticbitmapgeticon}
a44fb285
VZ
97
98\constfunc{wxIcon}{GetIcon}{\void}
99
100Returns the icon currently used in the control. Notice that this method can
101only be called if \helpref{SetIcon}{wxstaticbitmapseticon} had been used: an icon
102can't be retrieved from the control if a bitmap had been set (using
103\helpref{SetBitmap}{wxstaticbitmapsetbitmap}).
104
105\wxheading{See also}
106
87b66c28 107\helpref{wxStaticBitmap::SetIcon}{wxstaticbitmapseticon}
a44fb285
VZ
108
109
a660d684
KB
110\membersection{wxStaticBitmap::SetBitmap}\label{wxstaticbitmapsetbitmap}
111
112\func{virtual void}{SetBitmap}{\param{const wxBitmap\& }{ label}}
113
114Sets the bitmap label.
115
116\wxheading{Parameters}
117
118\docparam{label}{The new bitmap.}
119
120\wxheading{See also}
121
fa482912 122\helpref{wxStaticBitmap::GetBitmap}{wxstaticbitmapgetbitmap}
a660d684 123
a44fb285 124
87b66c28 125\membersection{wxStaticBitmap::SetIcon}\label{wxstaticbitmapseticon}
a44fb285
VZ
126
127\func{virtual void}{SetIcon}{\param{const wxIcon\& }{ label}}
128
129Sets the label to the given icon.
130
131\wxheading{Parameters}
132
133\docparam{label}{The new icon.}
134
135\wxheading{See also}
136
87b66c28 137\helpref{wxStaticBitmap::GetIcon}{wxstaticbitmapgeticon}
a44fb285 138