Jump to content
Sign in to follow this  
japino

Possible to select more than 1 item in listbox?

Recommended Posts

japino

Is there a way to let the user select more than one item in a listbox? I've been searching the functions list and the forums, but I cannot find the answer. I currently have the following code, but it allows only one selection in the listbox:

$listbox = GUICtrlCreateList("", 10, 40, -1, 290)
GUICtrlSetData(-1, $forListbox)

$forListbox is a variable that has been populated earlier and that contains the items that should appear in the listbox.

Share this post


Link to post
Share on other sites
Thatsgreat2345

Use _GUICtrlListBox_Create and check out parameter $LBS_EXTENDEDSEL

Edited by Thatsgreat2345

Share this post


Link to post
Share on other sites
japino

Thanks for the fast reply. Next time I'll remember to check out the include files before I post another question...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×