Sign in to follow this  
Followers 0
webmedic

Select multipe items in lsit view. How?

4 posts in this topic

#1 ·  Posted (edited)

I have been looking all over these forums and even found lots of dead links to cyberslugs gui wrapper functions. I did finaly find some stuff in the link in his sig bue none of the info in his listbox wrapper seems ot be working for what I need.

So I did use the search first and have been searching for hours.

Is there a simple way to be able to select multiple items in a listbox.

FOr right now i declaer my list box and the whole thing is working. Then to check and see what is being selected I use this in my select routine.

Case $msg[0] = $gui_run
              $gui_run_read_test = GuiCtrlRead($Drivelisting)
              MsgBox(0,"listview", "clicked=" & $gui_run_read_test)
                _BtnRun()

This does properly return a single selected item but it does not return anything but the first item if I have multpile items selected.

I would post the whole script but it is rather long and the last time I did Larry to me not to as it was to much to look at. If anybody is interested here it is.

The posted code has the debuging code in it as listed above.

DELETE_GUI.au3

Edited by webmedic

Share this post


Link to post
Share on other sites

I dunno, I couldnt get it to work when I modified the GUICtrlCreateListview example script to accept multiselect. GUICtrlRead returns the first selected item like you know.


Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post


Link to post
Share on other sites

yes I found that out rather quick It would be reat if it returned an array like the other things in autoit. Were [0] is the number of items in the array. That would make it so easy to pull out all the selected items.

Share this post


Link to post
Share on other sites

I guess then since the lack of responce that this is a definate no. I see from other projects that there is no problem with check boxes. What about using some kind of gui methods with the cwebpage.dll would that solve some of the possible issues?

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