檢視原始碼 wxAuiNotebookEvent (wx v2.4.3)

此類別由 wxAuiNotebook 產生的事件所使用。

請參閱

此類別繼承自以下類別,並可使用其函式:

wxWidgets 文件:wxAuiNotebookEvent

事件

使用 wxEvtHandler:connect/3wxAuiNotebookEventType 來訂閱此類型的事件。

摘要

函式

返回變更前選取的頁面,如果沒有選取任何頁面,則返回 wxNOT\_FOUND

返回目前選取的頁面,如果沒有選取任何頁面,則返回 wxNOT\_FOUND

設定變更前所選頁面的 ID。

設定選取成員變數。

類型

-type wxAuiNotebook() ::
          #wxAuiNotebook{type :: wxAuiNotebookEvent:wxAuiNotebookEventType(),
                         old_selection :: integer(),
                         selection :: integer(),
                         drag_source :: wxAuiNotebook:wxAuiNotebook()}.
-type wxAuiNotebookEvent() :: wx:wx_object().
連結到此類型

wxAuiNotebookEventType()

檢視原始碼
-type wxAuiNotebookEventType() ::
          command_auinotebook_page_close | command_auinotebook_page_changed |
          command_auinotebook_page_changing | command_auinotebook_button |
          command_auinotebook_begin_drag | command_auinotebook_end_drag |
          command_auinotebook_drag_motion | command_auinotebook_allow_dnd |
          command_auinotebook_tab_middle_down | command_auinotebook_tab_middle_up |
          command_auinotebook_tab_right_down | command_auinotebook_tab_right_up |
          command_auinotebook_page_closed | command_auinotebook_drag_done |
          command_auinotebook_bg_dclick.

函式

-spec getDragSource(This) -> wxAuiNotebook:wxAuiNotebook() when This :: wxAuiNotebookEvent().
-spec getOldSelection(This) -> integer() when This :: wxAuiNotebookEvent().

返回變更前選取的頁面,如果沒有選取任何頁面,則返回 wxNOT\_FOUND

-spec getSelection(This) -> integer() when This :: wxAuiNotebookEvent().

返回目前選取的頁面,如果沒有選取任何頁面,則返回 wxNOT\_FOUND

注意:在 Windows 下,當從 EVT_BOOKCTRL_PAGE_CHANGING 處理常式呼叫時,getSelection/1 將返回與 getOldSelection/1 相同的值,而不是即將被選取的頁面。

連結到此函式

setDragSource(This, S)

檢視原始碼
-spec setDragSource(This, S) -> ok when This :: wxAuiNotebookEvent(), S :: wxAuiNotebook:wxAuiNotebook().
連結到此函式

setOldSelection(This, Page)

檢視原始碼
-spec setOldSelection(This, Page) -> ok when This :: wxAuiNotebookEvent(), Page :: integer().

設定變更前所選頁面的 ID。

連結到此函式

setSelection(This, Page)

檢視原始碼
-spec setSelection(This, Page) -> ok when This :: wxAuiNotebookEvent(), Page :: integer().

設定選取成員變數。