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
}
20 \wxheading{Window styles
}
22 There are no special styles for this control.
24 See also
\helpref{window styles overview
}{windowstyles
}.
28 \helpref{wxStaticBitmap
}{wxstaticbitmap
},
\helpref{wxStaticBox
}{wxstaticbox
}
32 The bitmap to be displayed should have a small number of colours, such as
16, to avoid
35 \latexignore{\rtfignore{\wxheading{Members
}}}
38 \membersection{wxStaticBitmap::wxStaticBitmap
}\label{wxstaticbitmapconstr
}
40 \func{}{wxStaticBitmap
}{\void}
44 \func{}{wxStaticBitmap
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{ id
},
\rtfsp
45 \param{const wxBitmap\&
}{label
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
46 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticBitmap"
}}
48 Constructor, creating and showing a text control.
50 \wxheading{Parameters
}
52 \docparam{parent
}{Parent window. Should not be NULL.
}
54 \docparam{id
}{Control identifier. A value of -
1 denotes a default value.
}
56 \docparam{label
}{Bitmap label.
}
58 \docparam{pos
}{Window position.
}
60 \docparam{size
}{Window size.
}
62 \docparam{style
}{Window style. See
\helpref{wxStaticBitmap
}{wxstaticbitmap
}.
}
64 \docparam{name
}{Window name.
}
68 \helpref{wxStaticBitmap::Create
}{wxstaticbitmapcreate
}
71 \membersection{wxStaticBitmap::Create
}\label{wxstaticbitmapcreate
}
73 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{ id
},
\rtfsp
74 \param{const wxBitmap\&
}{label
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
75 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticBitmap"
}}
77 Creation function, for two-step construction. For details see
\helpref{wxStaticBitmap::wxStaticBitmap
}{wxstaticbitmapconstr
}.
80 \membersection{wxStaticBitmap::GetBitmap
}\label{wxstaticbitmapgetbitmap
}
82 \constfunc{wxBitmap
}{GetBitmap
}{\void}
84 Returns the bitmap currently used in the control. Notice that this method can
85 be called even if
\helpref{SetIcon
}{wxstaticbitmapseticon
} had been used.
89 \helpref{wxStaticBitmap::SetBitmap
}{wxstaticbitmapsetbitmap
}
92 \membersection{wxStaticIcon::GetIcon
}\label{wxstaticbitmapgeticon
}
94 \constfunc{wxIcon
}{GetIcon
}{\void}
96 Returns the icon currently used in the control. Notice that this method can
97 only be called if
\helpref{SetIcon
}{wxstaticbitmapseticon
} had been used: an icon
98 can't be retrieved from the control if a bitmap had been set (using
99 \helpref{SetBitmap
}{wxstaticbitmapsetbitmap
}).
103 \helpref{wxStaticIcon::SetIcon
}{wxstaticbitmapseticon
}
106 \membersection{wxStaticBitmap::SetBitmap
}\label{wxstaticbitmapsetbitmap
}
108 \func{virtual void
}{SetBitmap
}{\param{const wxBitmap\&
}{ label
}}
110 Sets the bitmap label.
112 \wxheading{Parameters
}
114 \docparam{label
}{The new bitmap.
}
118 \helpref{wxStaticBitmap::GetBitmap
}{wxstaticbitmapgetbitmap
}
121 \membersection{wxStaticIcon::SetIcon
}\label{wxstaticbitmapseticon
}
123 \func{virtual void
}{SetIcon
}{\param{const wxIcon\&
}{ label
}}
125 Sets the label to the given icon.
127 \wxheading{Parameters
}
129 \docparam{label
}{The new icon.
}
133 \helpref{wxStaticIcon::GetIcon
}{wxstaticbitmapgeticon
}