File: wx231.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 (189 lines) | stat: -rw-r--r-- 5,454 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<HTML>
<head><title>wxTabControl</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxtabcontrol"></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="wx230.htm#wxtabbedpanel"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx232.htm#wxtabview"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxTabControl</H2>
<P>
You will rarely need to use this class directly.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/tab.h&gt;<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx306.htm#wxtaboverview">Tab classes overview</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic897">wxTabControl::wxTabControl</A><BR>
<A HREF="#topic898">wxTabControl::GetColPosition</A><BR>
<A HREF="#topic899">wxTabControl::GetFont</A><BR>
<A HREF="#topic900">wxTabControl::GetHeight</A><BR>
<A HREF="#topic901">wxTabControl::GetId</A><BR>
<A HREF="#topic902">wxTabControl::GetLabel</A><BR>
<A HREF="#topic903">wxTabControl::GetRowPosition</A><BR>
<A HREF="#topic904">wxTabControl::GetSelected</A><BR>
<A HREF="#topic905">wxTabControl::GetWidth</A><BR>
<A HREF="#topic906">wxTabControl::GetX</A><BR>
<A HREF="#topic907">wxTabControl::GetY</A><BR>
<A HREF="#topic908">wxTabControl::HitTest</A><BR>
<A HREF="#topic909">wxTabControl::OnDraw</A><BR>
<A HREF="#topic910">wxTabControl::SetColPosition</A><BR>
<A HREF="#topic911">wxTabControl::SetFont</A><BR>
<A HREF="#topic912">wxTabControl::SetId</A><BR>
<A HREF="#topic913">wxTabControl::SetLabel</A><BR>
<A HREF="#topic914">wxTabControl::SetPosition</A><BR>
<A HREF="#topic915">wxTabControl::SetRowPosition</A><BR>
<A HREF="#topic916">wxTabControl::SetSelected</A><BR>
<A HREF="#topic917">wxTabControl::SetSize</A><BR>
<P>

<HR>
<A NAME="topic897"></A>
<H3>wxTabControl::wxTabControl</H3>
<P>
<B>void</B> <B>wxTabControl</B>(<B>wxTabView *</B><I>view = NULL</I>)<P>
Constructor.<P>

<HR>
<A NAME="topic898"></A>
<H3>wxTabControl::GetColPosition</H3>
<P>
<B>int</B> <B>GetColPosition</B>()<P>
Returns the position of the tab in the tab column.<P>

<HR>
<A NAME="topic899"></A>
<H3>wxTabControl::GetFont</H3>
<P>
<B>wxFont *</B> <B>GetFont</B>()<P>
Returns the font to be used for this tab.<P>

<HR>
<A NAME="topic900"></A>
<H3>wxTabControl::GetHeight</H3>
<P>
<B>int</B> <B>GetHeight</B>()<P>
Returns the tab height.<P>

<HR>
<A NAME="topic901"></A>
<H3>wxTabControl::GetId</H3>
<P>
<B>int</B> <B>GetId</B>()<P>
Returns the tab identifier.<P>

<HR>
<A NAME="topic902"></A>
<H3>wxTabControl::GetLabel</H3>
<P>
<B>wxString</B> <B>GetLabel</B>()<P>
Returns the tab label.<P>

<HR>
<A NAME="topic903"></A>
<H3>wxTabControl::GetRowPosition</H3>
<P>
<B>int</B> <B>GetRowPosition</B>()<P>
Returns the position of the tab in the layer or row.<P>

<HR>
<A NAME="topic904"></A>
<H3>wxTabControl::GetSelected</H3>
<P>
<B>bool</B> <B>GetSelected</B>()<P>
Returns the selected flag.<P>

<HR>
<A NAME="topic905"></A>
<H3>wxTabControl::GetWidth</H3>
<P>
<B>int</B> <B>GetWidth</B>()<P>
Returns the tab width.<P>

<HR>
<A NAME="topic906"></A>
<H3>wxTabControl::GetX</H3>
<P>
<B>int</B> <B>GetX</B>()<P>
Returns the x offset from the top-left of the view area.<P>

<HR>
<A NAME="topic907"></A>
<H3>wxTabControl::GetY</H3>
<P>
<B>int</B> <B>GetY</B>()<P>
Returns the y offset from the top-left of the view area.<P>

<HR>
<A NAME="topic908"></A>
<H3>wxTabControl::HitTest</H3>
<P>
<B>bool</B> <B>HitTest</B>(<B>int</B><I> x</I>, <B>int</B><I> y</I>)<P>
Returns TRUE if the point x, y is within the tab area.<P>

<HR>
<A NAME="topic909"></A>
<H3>wxTabControl::OnDraw</H3>
<P>
<B>void</B> <B>OnDraw</B>(<B>wxDC&amp; </B><I>dc</I>, <B>bool</B><I> lastInRow</I>)<P>
Draws the tab control on the given device context.<P>

<HR>
<A NAME="topic910"></A>
<H3>wxTabControl::SetColPosition</H3>
<P>
<B>void</B> <B>SetColPosition</B>(<B>int</B><I> pos</I>)<P>
Sets the position in the column.<P>

<HR>
<A NAME="topic911"></A>
<H3>wxTabControl::SetFont</H3>
<P>
<B>void</B> <B>SetFont</B>(<B>wxFont *</B><I>font</I>)<P>
Sets the font to be used for this tab.<P>

<HR>
<A NAME="topic912"></A>
<H3>wxTabControl::SetId</H3>
<P>
<B>void</B> <B>SetId</B>(<B>int</B><I> id</I>)<P>
Sets the tab identifier.<P>

<HR>
<A NAME="topic913"></A>
<H3>wxTabControl::SetLabel</H3>
<P>
<B>void</B> <B>SetLabel</B>(<B>const wxString&amp; </B><I>str</I>)<P>
Sets the label for the tab.<P>

<HR>
<A NAME="topic914"></A>
<H3>wxTabControl::SetPosition</H3>
<P>
<B>void</B> <B>SetPosition</B>(<B>int</B><I> x</I>, <B>int</B><I> y</I>)<P>
Sets the x and y offsets for this tab, measured from the top-left of the view area.<P>

<HR>
<A NAME="topic915"></A>
<H3>wxTabControl::SetRowPosition</H3>
<P>
<B>void</B> <B>SetRowPosition</B>(<B>int</B><I> pos</I>)<P>
Sets the position on the layer (row).<P>

<HR>
<A NAME="topic916"></A>
<H3>wxTabControl::SetSelected</H3>
<P>
<B>void</B> <B>SetSelected</B>(<B>bool </B><I>selected</I>)<P>
Sets the selection flag for this tab (does not set the current tab for the view;
use wxTabView::SetSelectedTab for that).<P>

<HR>
<A NAME="topic917"></A>
<H3>wxTabControl::SetSize</H3>
<P>
<B>void</B> <B>SetSize</B>(<B>int</B><I> width</I>, <B>int</B><I> height</I>)<P>
Sets the width and height for this tab.<P>

</BODY></HTML>