I have a functioning workaround but it would be nice to be able to just turn it on and off.
I would like for the second listbox ( bottom one ) in this example to be able to toggle multi select.
Code: Select all
#SingleInstance Force
Gui, Add, Listbox, w200 r6 Multi, Item|Item|Item|Item|Item|Item|Item|Item|
Gui, Add, Listbox, wp r6 hwndListboxHwnd , Item|Item|Item|Item|Item|Item|Item|Item|
Gui, Add, Checkbox, gToggleMultiSelect hwndCheckboxHwnd , Toggle Multi-Select
Gui, Show
return
GuiClose:
GuiContextMenu:
*ESC::ExitApp
ToggleMultiSelect: ;{
GuiControlGet, toggleState ,, % CheckboxHwnd
if( toggleState ){
;turn on multiSelect
MsgBox, multi is On
}else{
;turn off multiSelect
MsgBox, multi is Off
}
return
;}