Code: Select all
; Add keyboard shortcuts
AddKeyboardShortcut(#WINDOW_ADD_EDIT,#PB_Shortcut_Escape,1000)
AddKeyboardShortcut(#WINDOW_ADD_EDIT,#PB_Shortcut_Return,1003)
AddKeyboardShortcut(#WINDOW_ADD_EDIT,#PB_Shortcut_F1,1004)
I already have Bindings to gadgets:
Code: Select all
BindGadgetEvent(#TEXTBOX_WINDOW_ADD_EDIT_WORD, @process_pfx_sfx_update_word(),#PB_EventType_Change) ; Current word
BindGadgetEvent(#BUTTON_ADD_EDIT_OKAY, @process_pfx_sfx_update_word_okay(),#PB_EventType_LeftClick) ; Okay
BindGadgetEvent(#BUTTON_ADD_EDIT_CANCEL, @process_pfx_sfx_update_word_cancel(),#PB_EventType_LeftClick) ; Cancel
Thank you!