How to set Color for non editable ComboBox ?

Everything else that doesn't fall into one of the other PB categories.
Denis
Enthusiast
Enthusiast
Posts: 779
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

How to set Color for non editable ComboBox ?

Post 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
A+
Denis
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.***
I may look like a mule, but I'm not a complete ass.
Post Reply