PDA

View Full Version : Selection Color in ListView


Track
01-12-2010, 09:53 AM
Hi to All!
How to change the color of choice in the ListView from default color to another?
http://forums.cgsociety.org/attachment.php?attachmentid=149662&stc=1
Thanks.

JHN
01-13-2010, 09:04 AM
There's no simple switch for that, you should set the ownerdraw property of the listview to true and provide the DrawItem eventhandler with an override method for drawing the text and backcolor. I don't have a sample here, but if you can translate C# to maxscript:
http://www.codeguru.com/csharp/csharp/cs_controls/custom/article.php/c13423/

-Johan

CGTalk Moderation
01-13-2010, 09:04 AM
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.