檢視原始碼 wxAcceleratorTable (wx v2.4.3)
加速器表允許應用程式指定用於選單或按鈕指令的鍵盤快捷鍵表。
物件 ?wxNullAcceleratorTable 定義為沒有資料的表,且為視窗的初始加速器表。
範例
備註:加速器優先於正常處理,並且可以是程式化某些事件處理的方便方法。例如,您可以使用加速器表來啟用一個帶有多行文字控制項的對話框,使其接受 CTRL-Enter 作為「確定」的含意。
預先定義的物件(包含 wx.hrl):?wxNullAcceleratorTable
請參閱
wxWidgets 文件:wxAcceleratorTable
摘要
類型
-type wxAcceleratorTable() :: wx:wx_object().
函數
-spec destroy(This :: wxAcceleratorTable()) -> ok.
銷毀物件
-spec isOk(This) -> boolean() when This :: wxAcceleratorTable().
如果加速器表有效,則返回 true。
-spec new() -> wxAcceleratorTable().
預設建構子。
-spec new(N, Entries) -> wxAcceleratorTable() when N :: integer(), Entries :: [wxAcceleratorEntry:wxAcceleratorEntry()].
從 wxAcceleratorEntry
陣列初始化加速器表。
-spec ok(This) -> boolean() when This :: wxAcceleratorTable().
等同於:isOk/1