LondonNDIB Posted June 15, 2007 Posted June 15, 2007 (edited) When you first load the listview control, nothing at all is selected. After you select an item, is there then a way to get back to the nothing selected state?I've tried GUISetState with $GUI_UNCHECKED as in the help it says "Radio, Checkbox or ListViewItem will be unchecked" but it still shows as being selected.I also tried _GUICtrlListSelectIndex setting it to -1 but that didnt work either. Not sure what else to try. Is it possible?Alternatively, what would work in my particular case would be to set the state to disabled, but only if there's a way to have the text still show as black, not grey.Thanks. LDCORRECTION: I had a typo in my script. Setting _GUICtrlListSelectIndex to -1 did work Edited June 15, 2007 by LondonNDIB
GaryFrost Posted June 15, 2007 Posted June 15, 2007 When you first load the listview control, nothing at all is selected. After you select an item, is there then a way to get back to the nothing selected state?I've tried GUISetState with $GUI_UNCHECKED as in the help it says "Radio, Checkbox or ListViewItem will be unchecked" but it still shows as being selected.I also tried _GUICtrlListSelectIndex setting it to -1 but that didnt work either. Not sure what else to try. Is it possible?Alternatively, what would work in my particular case would be to set the state to disabled, but only if there's a way to have the text still show as black, not grey.Thanks. LDCORRECTION: I had a typo in my script. Setting _GUICtrlListSelectIndex to -1 did work_GUICtrlListSelectIndex should not work on a ListView, so I am assuming you are using a ListBox. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
LondonNDIB Posted June 15, 2007 Author Posted June 15, 2007 Sorry, I wasn't aware of the distinction. created with GUICtrlCreateList LD
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