Swimming_Bird Posted July 19, 2006 Share Posted July 19, 2006 For my Listview the styles i'm using are $LVS_SHOWSELALWAYS+$LVS_NOSORTHEADER. I want to be able to select as many items as they want then using a while loop go though the controls to find which ones are selected or checked if i use $LVS_EX_CHECKBOXES. However regardless of the state GUICtrlGetState always returns 80 on the ListViewItem's control. GUICtrlRead only gives me the data stored in the control i have selected. Link to comment Share on other sites More sharing options...
rakudave Posted July 19, 2006 Share Posted July 19, 2006 (edited) use the latest beta ( http://www.autoitscript.com/autoit3/files/beta/autoit )the beta provides you with a lot of aditional functions (read the help-file)for example _GUICtrlListViewGetCheckedState() returns the check state for a list-view control item Edited July 19, 2006 by rakudave Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 19, 2006 Author Share Posted July 19, 2006 is there any way of yet to do it without needing the $LVS_EX_CHECKBOXES command? Link to comment Share on other sites More sharing options...
rakudave Posted July 20, 2006 Share Posted July 20, 2006 yes, use _GUICtrlListViewGetCurSel(), this retrieves the index of current selection, then use _GUICtrlListViewGetItemText() to "convert" the returned index to the actual text of the selected items... Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 20, 2006 Author Share Posted July 20, 2006 the issue is that doesnt return if multiple items are selected. what i'd ideally like to do is have a list that i can select multiple items from using shift/ctrl clicks and have it do whatever based on what's selected. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 20, 2006 Share Posted July 20, 2006 the issue is that doesnt return if multiple items are selected. what i'd ideally like to do is have a list that i can select multiple items from using shift/ctrl clicks and have it do whatever based on what's selected.Try looking in the help_GUICtrlListViewGetSelectedIndices SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 20, 2006 Author Share Posted July 20, 2006 (edited) lol i was just about to post hat i found that command while browsing though the beta help file thanks though. i'm messing around with it now I'm quite amaized by how many new functions are in the beta simply with regard to ListView. I'm definately gonna have to spend some more time browsing the whole thing with this multitude of new functions availible. Edited July 20, 2006 by Swimming_BIrd Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now