-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui-hk-list.ahk
58 lines (42 loc) · 3.13 KB
/
gui-hk-list.ahk
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
guiHkList := new CGui(app, "HkList", "+LabelHkList", "CAP_HkList")
; ================================== Labels ====================================
guiHkList.AddControl("Text"
, "section w175 vTxtHK_ShowSettings"
, "HK_Settings")
guiHkList.AddControl("Text"
, "w175 vTxtHK_FilterOn"
, "HK_FilterOn")
guiHkList.AddControl("Text"
, "w175 vTxtHK_ListHotstrings"
, "HK_ListHotstrings")
guiHkList.AddControl("Text"
, "w175 vTxtHK_AddHotstring"
, "HK_AddHotstring")
guiHkList.AddControl("Text"
, "w175 vTxtHK_ReplaceSelection"
, "HK_ReplaceSelection")
; ============================= Hotkey controls ================================
; TODO: Add handlers to avoid duplicate hotkeys
guiHkList.AddControl("Hotkey"
, "section ys-3 vHkeyHK_ShowSettings gHkey_Change"
, "HK_Settings")
guiHkList.AddControl("Hotkey"
, "vHkeyHK_FilterOn gHkey_Change"
, "HK_FilterOn")
guiHkList.AddControl("Hotkey"
, "vHkeyHK_ListHotstrings gHkey_Change"
, "HK_ListHotstrings")
guiHkList.AddControl("Hotkey"
, "vHkeyHK_AddHotstring gHkey_Change"
, "HK_AddHotstring")
guiHkList.AddControl("Hotkey"
, "vHkeyHK_ReplaceSelection gHkey_Change"
, "HK_ReplaceSelection")
; ================================= Buttons ====================================
guiHkList.AddControl("Button"
, "section xm w75 h25 Default vBtnHkListOk gBtnHkListOk_Click"
, "BTN_OK")
guiHkList.AddControl("Button"
, "ys w75 h25 vBtnHkListCancel gBtnHkListCancel_Click"
, "BTN_Cancel")
app.Forms["HkList"] := guiHkList