1wxAuiNotebookEvent(3) Erlang Module Definition wxAuiNotebookEvent(3)
2
3
4
6 wxAuiNotebookEvent - Functions for wxAuiNotebookEvent class
7
9 This class is used by the events generated by wxAuiNotebook.
10
11 See: wxAuiNotebook, wxBookCtrlEvent
12
13 This class is derived (and can use functions) from: wxBookCtrlEvent
14 wxNotifyEvent wxCommandEvent wxEvent
15
16 wxWidgets docs: wxAuiNotebookEvent
17
19 Use wxEvtHandler:connect/3 with wxAuiNotebookEventType to subscribe to
20 events of this type.
21
23 wxAuiNotebookEvent() = wx:wx_object()
24
25 wxAuiNotebook() =
26 #wxAuiNotebook{type =
27 wxAuiNotebookEvent:wxAuiNotebookEventType(),
28 old_selection = integer(),
29 selection = integer(),
30 drag_source = wxAuiNotebook:wxAuiNotebook()}
31
32 wxAuiNotebookEventType() =
33 command_auinotebook_page_close |
34 command_auinotebook_page_changed |
35 command_auinotebook_page_changing |
36 command_auinotebook_button | command_auinotebook_begin_drag |
37 command_auinotebook_end_drag |
38 command_auinotebook_drag_motion |
39 command_auinotebook_allow_dnd |
40 command_auinotebook_tab_middle_down |
41 command_auinotebook_tab_middle_up |
42 command_auinotebook_tab_right_down |
43 command_auinotebook_tab_right_up |
44 command_auinotebook_page_closed |
45 command_auinotebook_drag_done | command_auinotebook_bg_dclick
46
48 setSelection(This, Page) -> ok
49
50 Types:
51
52 This = wxAuiNotebookEvent()
53 Page = integer()
54
55 Sets the selection member variable.
56
57 getSelection(This) -> integer()
58
59 Types:
60
61 This = wxAuiNotebookEvent()
62
63 Returns the currently selected page, or wxNOT_FOUND if none was
64 selected.
65
66 Note: under Windows, getSelection/1 will return the same value
67 as getOldSelection/1 when called from the EVT_BOOKC‐
68 TRL_PAGE_CHANGING handler and not the page which is going to be
69 selected.
70
71 setOldSelection(This, Page) -> ok
72
73 Types:
74
75 This = wxAuiNotebookEvent()
76 Page = integer()
77
78 Sets the id of the page selected before the change.
79
80 getOldSelection(This) -> integer()
81
82 Types:
83
84 This = wxAuiNotebookEvent()
85
86 Returns the page that was selected before the change,
87 wxNOT_FOUND if none was selected.
88
89 setDragSource(This, S) -> ok
90
91 Types:
92
93 This = wxAuiNotebookEvent()
94 S = wxAuiNotebook:wxAuiNotebook()
95
96 getDragSource(This) -> wxAuiNotebook:wxAuiNotebook()
97
98 Types:
99
100 This = wxAuiNotebookEvent()
101
102
103
104wxWidgets team. wx 2.1 wxAuiNotebookEvent(3)