Sign in to follow this  
Followers 0
jftuga

selecting multiple items from a list

6 posts in this topic

OK, I did search the forums for this, but did not find anything relative.

Global $providerID = GUICtrlCreateList("", 90, 22, 680, 575)

works, but can only select 1 item. I need the ability to select multiple lines.

This did not work:

Global $providerID = GUICtrlCreateList("", 90, 22, 680, 575, BitOR($LBS_SORT, $WS_BORDER, $WS_VSCROLL, $ES_MULTILINE))

I also tried BitAND to no avail.

Any help would be appreciated.

Thanks,

-John

Share this post


Link to post
Share on other sites



LBS_MULTIPLESEL style:

$listbox = GUICtrlCreateList("", 125, 40, 180, 120, BitOR($LBS_SORT, $WS_BORDER, $WS_VSCROLL, $LBS_NOTIFY, $LBS_MULTIPLESEL))

Look here for example.

I had been looking for this for some time. In the meantime I created a kludge that added the items to an array and I simply processed them out. This works a little better I guess.

1. How do you extract all the items that are selected though?

2. How do you allow multiple selections via CTRL+Left Click, not Left Click? (That's really weird to me.)

3. Where is $LBS_MULTIPLESEL documented?

Share this post


Link to post
Share on other sites

I had been looking for this for some time. In the meantime I created a kludge that added the items to an array and I simply processed them out. This works a little better I guess.

1. How do you extract all the items that are selected though?

2. How do you allow multiple selections via CTRL+Left Click, not Left Click? (That's really weird to me.)

3. Where is $LBS_MULTIPLESEL documented?

1.GUIList UDF: _GUICtrlListGetSelCount(), _GUICtrlListGetSelItem(), _GUICtrlListGetSelItemsText()

3. Look here

Share this post


Link to post
Share on other sites

Thank you very much, Zedna.

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  
Followers 0