File: wx167.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 (108 lines) | stat: -rw-r--r-- 3,844 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
<HTML>
<head><title>wxPanelTabView</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxpaneltabview"></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="wx166.htm#wxpanel"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx168.htm#wxpathlist"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxPanelTabView</H2>
<P>
The wxPanelTabView is responsible for input and output on a wxPanel.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx232.htm#wxtabview">wxTabView</A><BR>

<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="wx307.htm#wxtabviewoverview">wxTabView overview</A>, <A HREF="wx232.htm#wxtabview">wxTabView</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxpaneltabviewconstr">wxPanelTabView::wxPanelTabView</A><BR>
<A HREF="#topic636">wxPanelTabView::~wxPanelTabView</A><BR>
<A HREF="#wxpaneltabviewaddtabwindow">wxPanelTabView::AddTabWindow</A><BR>
<A HREF="#topic637">wxPanelTabView::ClearWindows</A><BR>
<A HREF="#topic638">wxPanelTabView::GetCurrentWindow</A><BR>
<A HREF="#topic639">wxPanelTabView::GetTabWindow</A><BR>
<A HREF="#topic640">wxPanelTabView::ShowWindowForTab</A><BR>
<P>

<HR>
<A NAME="wxpaneltabviewconstr"></A>
<H3>wxPanelTabView::wxPanelTabView</H3>
<P>
<B>void</B> <B>wxPanelTabView</B>(<B>wxPanel *</B><I>panel</I>, <B>long </B><I>style = wxTAB_STYLE_DRAW_BOX |  wxTAB_STYLE_COLOUR_INTERIOR</I>)<P>
Constructor. <I>panel</I> should be a wxTabbedPanel or wxTabbedDialog: the type will be checked by the view at run time.<P>
<I>style</I> may be a bit list of the following:<P>

<TABLE>


<TR><TD VALIGN=TOP>
wxTAB_STYLE_DRAW_BOX
</TD>

<TD VALIGN=TOP>
Draw a box around the view area. Most commonly used for dialogs.
</TD></TR>


<TR><TD VALIGN=TOP>
wxTAB_STYLE_COLOUR_INTERIOR
</TD>

<TD VALIGN=TOP>
Draw tab backgrounds in the specified colour. Omitting this style
will ensure that the tab background matches the dialog background.
</TD></TR>


</TABLE>
<P>

<HR>
<A NAME="topic636"></A>
<H3>wxPanelTabView::~wxPanelTabView</H3>
<P>
<B>void</B> <B>~wxPanelTabView</B>()<P>
Destructor. This destructor deletes all the panels associated with the view.
If you do not wish this to happen, call ClearWindows with argument FALSE before the
view is likely to be destroyed. This will clear the list of windows, without deleting them.<P>

<HR>
<A NAME="wxpaneltabviewaddtabwindow"></A>
<H3>wxPanelTabView::AddTabWindow</H3>
<P>
<B>void</B> <B>AddTabPanel</B>(<B>int</B><I> id</I>, <B>wxWindow *</B><I>window</I>)<P>
Adds a window to the view. The window is associated with the tab identifier, and will be shown or hidden as the tab
is selected or deselected.<P>

<HR>
<A NAME="topic637"></A>
<H3>wxPanelTabView::ClearWindows</H3>
<P>
<B>void</B> <B>ClearWindows</B>(<B>bool</B><I> deleteWindows = TRUE</I>)<P>
Removes the child windows from the view. If <I>deleteWindows</I> is TRUE, the windows will be deleted.<P>

<HR>
<A NAME="topic638"></A>
<H3>wxPanelTabView::GetCurrentWindow</H3>
<P>
<B>wxPanel *</B> <B>GetCurrentWindow</B>()<P>
Returns the child window currently being displayed on the tabbed panel or dialog box.<P>

<HR>
<A NAME="topic639"></A>
<H3>wxPanelTabView::GetTabWindow</H3>
<P>
<B>wxWindow *</B> <B>GetTabWindow</B>(<B>int</B><I> id</I>)<P>
Returns the window associated with the tab identifier.<P>

<HR>
<A NAME="topic640"></A>
<H3>wxPanelTabView::ShowWindowForTab</H3>
<P>
<B>void</B> <B>ShowWindowForTab</B>(<B>int</B><I> id</I>)<P>
Shows the child window corresponding to the tab identifier, and hides the previously shown window.<P>


</BODY></HTML>