Jump to content

selecting multiple items from a list


jftuga
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

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?

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...