Jump to content
Sign in to follow this  
LondonNDIB

Howto de-select listview?

Recommended Posts

LondonNDIB

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.

LD

CORRECTION: I had a typo in my script. Setting _GUICtrlListSelectIndex to -1 did work

Edited by LondonNDIB

Share this post


Link to post
Share on other sites
GaryFrost

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.

LD

CORRECTION: 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.

 

Share this post


Link to post
Share on other sites
LondonNDIB

Sorry, I wasn't aware of the distinction.

created with GUICtrlCreateList

LD

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  

×