View Full Version : How to change the background color of DotNet checkboxes in listview
Jon-Huhn 05-13-2009, 12:29 AM Anyone know how to change the background color of the checkboxes in a DotNet listview? The listview.BackColor property works for everything except the checkbox itself, which always remains with a white background around and inside the box.
Thanks.
|
|
LoneRobot
05-13-2009, 09:30 AM
Hi John,
I don't think it is straight forward- firstly you would have to set the owner draw property to true. However, this means you have to draw all the listview item apprearance also. I think the actual checkbox itself is tied to something else - the CheckBoxRenderer. It's certainly not something i'd attempt within max, but a custom listview control in vb or c# should be possible. I think i read something about it somewhere once, i'll have a ferret around to see.
Jon-Huhn
05-13-2009, 01:58 PM
Thanks, Peter
What I'll probably just do is make a custom bitmap. That way I can easily make an indeterminate state as well.
CGTalk Moderation
05-13-2009, 01:58 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.