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
|
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">
<!-- THIS FILE IS GENERATED DO NOT EDIT -->
<erlref>
<header>
<copyright>
<year>2020</year><year>2021</year>
<holder>wxWidgets team.</holder></copyright>
<legalnotice>Licensed under the wxWindows Free Documentation Licence, Version 3
</legalnotice>
<title>wxNotebook</title>
</header>
<module>wxNotebook</module>
<modulesummary>Functions for wxNotebook class</modulesummary>
<description><p>This class represents a notebook control, which manages multiple windows with associated tabs.
</p><p>To use the class, create a <seeerl marker="wxNotebook"><c>wxNotebook</c></seeerl> object and call <seemfa marker="wxBookCtrlBase#addPage/4"><c>wxBookCtrlBase:addPage/4</c></seemfa> or <seemfa marker="wxBookCtrlBase#insertPage/5"><c>wxBookCtrlBase:insertPage/5</c></seemfa>, passing a window to be used as the page. Do not explicitly delete the window for a page that is currently managed by <seeerl marker="wxNotebook"><c>wxNotebook</c></seeerl>.
</p><p><c>wxNotebookPage</c> is a typedef for <seeerl marker="wxWindow"><c>wxWindow</c></seeerl>.
</p><p>Styles</p><p>This class supports the following styles:
</p><p>Page backgrounds</p> <p>On Windows, the default theme paints a background on the notebook's pages. If you wish to suppress this theme, for aesthetic or performance reasons, there are three ways of doing it. You can use <c>wxNB_NOPAGETHEME</c> to disable themed drawing for a particular notebook, you can call <seemfa marker="wxSystemOptions#setOption/2"><c>wxSystemOptions:setOption/2</c></seemfa> to disable it for the whole application, or you can disable it for individual pages by using <seemfa marker="wxWindow#setBackgroundColour/2"><c>wxWindow:setBackgroundColour/2</c></seemfa>.
</p> <p>To disable themed pages globally:
</p> <p>Set the value to 1 to enable it again. To give a single page a solid background that more or less fits in with the overall theme, use:
</p> <p>On platforms other than Windows, or if the application is not using Windows themes, <seemfa marker="#getThemeBackgroundColour/1"><c>getThemeBackgroundColour/1</c></seemfa> will return an uninitialised colour object, and the above code will therefore work on all platforms.
</p> <p>See: ?wxBookCtrl, <seeerl marker="wxBookCtrlEvent"><c>wxBookCtrlEvent</c></seeerl>, <seeerl marker="wxImageList"><c>wxImageList</c></seeerl>, <url href="https://docs.wxwidgets.org/3.1/page_samples.html#page_samples_notebook">Examples</url>
</p>
<p>This class is derived (and can use functions) from:
<seeerl marker="wxBookCtrlBase"><c>wxBookCtrlBase</c></seeerl> <seeerl marker="wxControl"><c>wxControl</c></seeerl> <seeerl marker="wxWindow"><c>wxWindow</c></seeerl> <seeerl marker="wxEvtHandler"><c>wxEvtHandler</c></seeerl></p>
<p>wxWidgets docs: <url href="https://docs.wxwidgets.org/3.1/classwx_notebook.html">wxNotebook</url></p>
</description><section><title>Events</title><p>Event types emitted from this class: <seeerl marker="wxBookCtrlEvent"><c>command_notebook_page_changed</c></seeerl>, <seeerl marker="wxBookCtrlEvent"><c>command_notebook_page_changing</c></seeerl></p></section>
<datatypes><datatype><name name="wxNotebook"/></datatype></datatypes>
<funcs>
<func>
<name name="new" arity="0" clause_i="1" since=""/>
<fsummary>Constructs a notebook control. </fsummary>
<desc><p>Constructs a notebook control.
</p></desc>
</func>
<func>
<name name="new" arity="2" clause_i="1" since=""/>
<fsummary>See: <c>new/3</c></fsummary>
</func>
<func>
<name name="new" arity="3" clause_i="1" since=""/>
<fsummary>Constructs a notebook control. </fsummary>
<desc><p>Constructs a notebook control.
</p><p>Note that sometimes you can reduce flicker by passing the wxCLIP_CHILDREN window style.
</p></desc>
</func>
<func>
<name name="destroy" arity="1" clause_i="1" since=""/>
<fsummary>Destroys the <c>wxNotebook</c> object. </fsummary>
<desc><p>Destroys the <seeerl marker="wxNotebook"><c>wxNotebook</c></seeerl> object.
</p></desc>
</func>
<func>
<name name="assignImageList" arity="2" clause_i="1" since=""/>
<fsummary>Sets the image list for the page control and takes ownership of the list. </fsummary>
<desc><p>Sets the image list for the page control and takes ownership of the list.
</p><p>See: <seeerl marker="wxImageList"><c>wxImageList</c></seeerl>, <seemfa marker="#setImageList/2"><c>setImageList/2</c></seemfa>
</p></desc>
</func>
<func>
<name name="create" arity="3" clause_i="1" since=""/>
<fsummary>See: <c>create/4</c></fsummary>
</func>
<func>
<name name="create" arity="4" clause_i="1" since=""/>
<fsummary>Creates a notebook control. </fsummary>
<desc><p>Creates a notebook control.
</p><p>See <seemfa marker="#new/3"><c>new/3</c></seemfa> for a description of the parameters.
</p></desc>
</func>
<func>
<name name="getImageList" arity="1" clause_i="1" since=""/>
<fsummary>Returns the associated image list, may be NULL. </fsummary>
<desc><p>Returns the associated image list, may be NULL.
</p><p>See: <seeerl marker="wxImageList"><c>wxImageList</c></seeerl>, <seemfa marker="#setImageList/2"><c>setImageList/2</c></seemfa>
</p></desc>
</func>
<func>
<name name="getPageImage" arity="2" clause_i="1" since=""/>
<fsummary>Returns the image index for the given page. </fsummary>
<desc><p>Returns the image index for the given page.
</p></desc>
</func>
<func>
<name name="getRowCount" arity="1" clause_i="1" since=""/>
<fsummary>Returns the number of rows in the notebook control. </fsummary>
<desc><p>Returns the number of rows in the notebook control.
</p></desc>
</func>
<func>
<name name="getThemeBackgroundColour" arity="1" clause_i="1" since=""/>
<fsummary>If running under Windows and themes are enabled for the application, this function returns a suitable colour for painting the background of a notebook page, and can be passed to <c>wxWindow:setBackgroundColour/2</c>. </fsummary>
<desc><p>If running under Windows and themes are enabled for the application, this function returns a suitable colour for painting the background of a notebook page, and can be passed to <seemfa marker="wxWindow#setBackgroundColour/2"><c>wxWindow:setBackgroundColour/2</c></seemfa>.
</p><p>Otherwise, an uninitialised colour will be returned.
</p></desc>
</func>
<func>
<name name="setImageList" arity="2" clause_i="1" since=""/>
<fsummary>Sets the image list to use. </fsummary>
<desc><p>Sets the image list to use.
</p><p>It does not take ownership of the image list, you must delete it yourself.
</p><p>See: <seeerl marker="wxImageList"><c>wxImageList</c></seeerl>, <seemfa marker="#assignImageList/2"><c>assignImageList/2</c></seemfa>
</p></desc>
</func>
<func>
<name name="setPadding" arity="2" clause_i="1" since=""/>
<fsummary>Sets the amount of space around each page's icon and label, in pixels. </fsummary>
<desc><p>Sets the amount of space around each page's icon and label, in pixels.
</p><p>Note: The vertical padding cannot be changed in wxGTK.
</p></desc>
</func>
<func>
<name name="setPageSize" arity="2" clause_i="1" since=""/>
<fsummary>Sets the width and height of the pages. </fsummary>
<desc><p>Sets the width and height of the pages.
</p><p>Note: This method is currently not implemented for wxGTK.
</p></desc>
</func>
<func>
<name name="setPageImage" arity="3" clause_i="1" since=""/>
<fsummary>Sets the image index for the given page. </fsummary>
<desc><p>Sets the image index for the given page.
</p><p><c>image</c> is an index into the image list which was set with <seemfa marker="#setImageList/2"><c>setImageList/2</c></seemfa>.
</p></desc>
</func>
</funcs>
</erlref>
|