Coloring item X in a combobox dropdown?

Coloring item X in a combobox dropdown?

Post by Alex » Thu, 01 Feb 2007 13:59:17



Hi all -


Given a combobox loaded from a dataset which has, say 5 items in it... is
there a way to color code one of the items where .value = y so that the
user sees the dropdown list with the appropriate selection colored?
 
 
 

1. Possible to change background color of combobox/dropdown item??

2. ComboBox + DropDown List - context menu for list items?...

Hi.

I wanted to add context-menu to each of the items of my DropDown List.
See example image:

http://www.yqcomputer.com/

I mean, I wanted a small popup-menu to occur when I click with RMB on
some item from the list (say, 'Collection' <- see screenshot above).
The problem is that open dropdown-list-window seems to ignore RMB clicks
(or any other mouse-actions other than selecting an item which causes
the list to close itself). Is there any possibility to 'catch' RMB
clicks in DropDown-List window?...

The other problem is that I wanted to add some 'disabled' items to the
list. They would be visible, but not selectable (the user can click on
it, but nothing happens -> the dropdown list is not closed). Is there
any way to 'check' if the item is selectable before the list would be
closed?...

With regards,
mixcherry

3. ComboBox DropDown does not display list item

4. Avoid resize of combobox while dropdown visible and adding items?

5. ComboBox + DropDown List - context-menu for list items?...

6. Changing 'selected' color of Dropdown List (ComboBox)

7. ComboBox + DropDown List - context menu for list items?...

8. ComboBox Control (not DropDown "Forms" Item) in a Word Document

9. ComboBox + DropDown List - context-menu for list items?...

10. ComboBox dropdown list Colour!

11. Prevent default DropDown of ComboBox (Listview in ComboBox)

12. How to change the color of individual combobox items

13. Change combobox item font/color

14. combobox text for selected item- mouse over colors

15. Changing color of individual items in combobox