Atlantisoft
February 25th, 2000, 06:50 PM
how can i change the color of the backround on the item you have selected in a listbox? It's not one of the properties in the listbox itself, is there some way i can subclass this in?
|
Click to See Complete Forum and Search --> : Changing The Selection Color of Listbox Atlantisoft February 25th, 2000, 06:50 PM how can i change the color of the backround on the item you have selected in a listbox? It's not one of the properties in the listbox itself, is there some way i can subclass this in? Ravi Kiran February 26th, 2000, 12:44 AM It is Windows Color scheme. You can change it from Control panel. and it wil affect all applications. (and all selections, in every other "normal" control ) You can ofcourse do it with subclassing for this listbox only!. You need to paint the item in different color. Take a look at the code in articles section: - Non-Selectable listitems ( by .. well.. me!). http://codeguru.developer.com/vb/articles/1834.shtml You can take the idea from there. RK codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |