Setting colors to Disabled Controls

  • Thread starter Thread starter DC
  • Start date Start date
D

DC

Hi All,

When a control is disabled, it is grayed out.
Is there anyway to set a different foreground/background color for disabled
controls (combobox, textbox, etc).

Thanks.
DC
 
Hi,

No.

Ken
-----------------
Hi All,

When a control is disabled, it is grayed out.
Is there anyway to set a different foreground/background color for disabled
controls (combobox, textbox, etc).

Thanks.
DC
 
Ok.
In that case, is there a way to get the handle of the editable portion of
the combo box.
What I am thinking of is paint the disabled region with a different color,
and draw the combobox string in a contrasting color on the painted
rectangle.
Is this possible.

Regards,
DC
 
Any ideas anyone?



DC said:
Ok.
In that case, is there a way to get the handle of the editable portion of
the combo box.
What I am thinking of is paint the disabled region with a different color,
and draw the combobox string in a contrasting color on the painted
rectangle.
Is this possible.

Regards,
DC
 
Thanks Herfried.
I'll try the sample and get back - may take some time, but will post here.

Regards,
DC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top