Jump to content
Sign in to follow this  
JerryD

Can Listview Checkboxes Be Disabled

Recommended Posts

JerryD

I posed this question in the Support forum, and it was suggested I post the question here and that Holger might have the answer.

I've also attached the test code I have so far, and it works fine. I want the checkboxes in the Installed Updates list to be disabled unless a hotkey is hit in which case checking the box would uninstall the hotfix.

I've tried several methods, and at the moment have 'disabled' the checkboxes by unchecking them if they're checked, but I'm not very happy with that solution.

I can live with it, but would rather disable them.

Jerry

ListViewProblem.au3ListViewProblemVars.au3

Share this post


Link to post
Share on other sites
Holger

I think a real disabled listview item could be possible with an ownerdrawn listview.

But thats too much for me right now.

For short I can tell you that there is the possibility to draw it like disabled.

Some month ago I wrote something like a tristate treeview - which you know from the most installers.

There I use a "state image list" - so there are more states possible - but maybe only for selfcreated items cause I think if you use GUI_DISABLE and GUI_CHECKED on a listview item you can get only the state GUI_CHECKED back - also if you use GUI_DISABLE.

I will take a look the next days how it can be simplified.

Greets :)

Holger

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.