File: wx218.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (104 lines) | stat: -rw-r--r-- 4,117 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<HTML>
<head><title>wxStaticBitmap</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxstaticbitmap"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx217.htm#wxsplitterwindow"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx219.htm#wxstaticbox"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxStaticBitmap</H2>
<P>
A static bitmap control displays a bitmap.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx56.htm#wxcontrol">wxControl</A><BR>

<A HREF="wx260.htm#wxwindow">wxWindow</A><BR>

<A HREF="wx85.htm#wxevthandler">wxEvtHandler</A><BR>

<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/statbmp.h&gt;<P>
<B><FONT COLOR="#FF0000">Window styles</FONT></B><P>
There are no special styles for this control.<P>
See also <A HREF="wx305.htm#windowstyles">window styles overview</A>.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx218.htm#wxstaticbitmap">wxStaticBitmap</A>, <A HREF="wx219.htm#wxstaticbox">wxStaticBox</A><P>
<B><FONT COLOR="#FF0000">Remarks</FONT></B><P>
The bitmap to be displayed should have a small number of colours, such as 16, to avoid
palette problems.<P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxstaticbitmapconstr">wxStaticBitmap::wxStaticBitmap</A><BR>
<A HREF="#wxstaticbitmapcreate">wxStaticBitmap::Create</A><BR>
<A HREF="#wxstaticbitmapgetbitmap">wxStaticBitmap::GetBitmap</A><BR>
<A HREF="#wxstaticbitmapsetbitmap">wxStaticBitmap::SetBitmap</A><BR>
<P>

<HR>
<A NAME="wxstaticbitmapconstr"></A>
<H3>wxStaticBitmap::wxStaticBitmap</H3>
<P>
<B></B> <B>wxStaticBitmap</B>()<P>
Default constructor.<P>
<B></B> <B>wxStaticBitmap</B>(<B>wxWindow* </B><I>parent</I>, <B>wxWindowID</B><I> id</I>,
<B>const wxBitmap&amp; </B><I>label = ""</I>, <B>const wxPoint&amp; </B><I>pos</I>, <B>const wxSize&amp; </B><I>size = wxDefaultSize</I>,
<B>long</B><I> style = 0</I>, <B>const wxString&amp; </B><I>name = "staticBitmap"</I>)<P>
Constructor, creating and showing a text control.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>parent</I><UL><UL>
Parent window. Should not be NULL.</UL></UL>
<P>
<I>id</I><UL><UL>
Control identifier. A value of -1 denotes a default value.</UL></UL>
<P>
<I>label</I><UL><UL>
Bitmap label.</UL></UL>
<P>
<I>pos</I><UL><UL>
Window position.</UL></UL>
<P>
<I>size</I><UL><UL>
Window size.</UL></UL>
<P>
<I>style</I><UL><UL>
Window style. See <A HREF="wx218.htm#wxstaticbitmap">wxStaticBitmap</A>.</UL></UL>
<P>
<I>name</I><UL><UL>
Window name.</UL></UL>
<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx218.htm#wxstaticbitmapcreate">wxStaticBitmap::Create</A><P>

<HR>
<A NAME="wxstaticbitmapcreate"></A>
<H3>wxStaticBitmap::Create</H3>
<P>
<B>bool</B> <B>Create</B>(<B>wxWindow* </B><I>parent</I>, <B>wxWindowID</B><I> id</I>,
<B>const wxBitmap&amp; </B><I>label = ""</I>, <B>const wxPoint&amp; </B><I>pos</I>, <B>const wxSize&amp; </B><I>size = wxDefaultSize</I>,
<B>long</B><I> style = 0</I>, <B>const wxString&amp; </B><I>name = "staticBitmap"</I>)<P>
Creation function, for two-step construction. For details see <A HREF="wx218.htm#wxstaticbitmapconstr">wxStaticBitmap::wxStaticBitmap</A>.<P>

<HR>
<A NAME="wxstaticbitmapgetbitmap"></A>
<H3>wxStaticBitmap::GetBitmap</H3>
<P>
<B>wxBitmap&amp;</B> <B>GetBitmap</B>() <B>const</B><P>
Returns a reference to the label bitmap.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx218.htm#wxstaticbitmapsetbitmap">wxStaticBitmap::SetBitmap</A><P>

<HR>
<A NAME="wxstaticbitmapsetbitmap"></A>
<H3>wxStaticBitmap::SetBitmap</H3>
<P>
<B>virtual void</B> <B>SetBitmap</B>(<B>const wxBitmap&amp; </B><I> label</I>)<P>
Sets the bitmap label.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>label</I><UL><UL>
The new bitmap.</UL></UL>
<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<I>wxStaticBitmap::GetBitmap</I><UL><UL>
wxstaticbitmapgetbitmap</UL></UL>
<P>

</BODY></HTML>