ALT+space is reserved for the system menu which may be used to close the window. Very annoying if checkbox status is unintentionally changed (especially when hidden under the menu).
Ctrl+space is reserved for deselecting an item.
Code: Select all
OpenWindow(0,200,200,200,300,"Test ListIcon Checkbox",#PB_Window_SystemMenu)
ListIconGadget(1,0,0,200,300,"ListIconGadget",170,#PB_ListIcon_CheckBoxes)
For i = 100 To 120 : AddGadgetItem(1,-1,Str(i)) : Next
SetActiveGadget(1)
SetGadgetState(1,10)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow