Page 1 of 1

How to set Color for non editable ComboBox ?

Posted: Tue Nov 11, 2003 12:01 pm
by Denis
I'm writting a small lib to set color to combobox.

It's oK when i use for example this combo :ComboBoxGadget( 3, 10, 70, 180, 120, #PB_ComboBox_Editable )

But without #PB_ComboBox_Editable flag, there is no color for the non editable edit control. I try to process #WM_CTLCOLORSTATIC in the callback, but without succes.

I never get this msg in the callback.

Any idea ?


Tks


Denis

Posted: Sun Oct 30, 2005 8:53 pm
by srod
I've just run into the same problem with a non-editable combobox. I need to colour the 'static' field at the top of the control. I've tried intercepting #WM_CTLCOLORSTATIC events, but no joy.

The following code shows my progress so far in that I can colour the listbox easily enough:

Code: Select all

REMOVED
***Just realised this is probably in the wrong forum, I will post in the coding section as well!***

***RESOLVED in Coding forum.***