It seems you're right. I haven't used HOTKEY_CLASS before, but it appears to have the same issue (shows Up as "Num 8" but if I press the up key, it does say "Up").
I asked because I'm going to submit new hotkeys to the IDE project, but the arrow keys display wrong when opening the shortcut prefs! (Windows' fault.)
Code: Select all
If OpenWindow(0, 0, 0, 240, 170, "ShortcutGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ShortcutGadget(0, 20, 20, 200, 25, #PB_Shortcut_Up)
*hwndHot = CreateWindowEx_(0, #HOTKEY_CLASS, #Null, #WS_CHILD | #WS_VISIBLE, 20, 60, 200, 20, WindowID(0), #Null, GetModuleHandle_(#Null), #Null)
SendMessage_(*hwndHot, #HKM_SETHOTKEY, #VK_UP, 0)
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
CloseWindow_(*hwndHot)
EndIf
EDIT: Similarly, it displays the regular Delete shortcut as "Num Del"
Code: Select all
If OpenWindow(0, 0, 0, 240, 170, "ShortcutGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ShortcutGadget(0, 20, 20, 200, 25, #PB_Shortcut_Delete)
*hwndHot = CreateWindowEx_(0, #HOTKEY_CLASS, #Null, #WS_CHILD | #WS_VISIBLE, 20, 60, 200, 20, WindowID(0), #Null, GetModuleHandle_(#Null), #Null)
SendMessage_(*hwndHot, #HKM_SETHOTKEY, #VK_DELETE, 0)
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
CloseWindow_(*hwndHot)
EndIf