list box item emphasis
-
Hi. Does anyone know of a way to emphasize or highlight specific items in a list box, and/or in the list portion of a combo box? eg: The list box contains a number of items, all of which must be visible, but only some of which are "valid" selections for the user (invalid items can be selected, but have different effects). I need a visible difference between valid & invalid choices within the box (different text color, check mark, etc). I would rather not get into owner drawn, since that is completely new to me. Thanks. :) Wayne Janaway
-
Hi. Does anyone know of a way to emphasize or highlight specific items in a list box, and/or in the list portion of a combo box? eg: The list box contains a number of items, all of which must be visible, but only some of which are "valid" selections for the user (invalid items can be selected, but have different effects). I need a visible difference between valid & invalid choices within the box (different text color, check mark, etc). I would rather not get into owner drawn, since that is completely new to me. Thanks. :) Wayne Janaway
That would be cake to do with a list view control - see my article on custom draw. If you must stick with the old-style list box, you'll have to owner-draw it, sorry. --Mike-- http://home.inreach.com/mdunn/ Push the button, Frank.