Board index » delphi » Setting Font.Color and background color on comps with Enabled:=False (TEdit)

Setting Font.Color and background color on comps with Enabled:=False (TEdit)

Hi,

Colorizing question:

When components (TEdit, TMaskedit, etc.) "Enabled" property is to
FALSE, the text is shown dark-grey instead of the "Font.Color"
defined in property Font. Is there a possibility to set the
"Font.Color" of a component that has its enabled property set to
FALSE to a color different from dark-grey ?

Thanks in adv.

 

Re:Setting Font.Color and background color on comps with Enabled:=False (TEdit)


Quote
"H. Hoffmann" <hhoffm...@aol.com> wrote in message

news:01c065f9$7ae899a0$3e1631d9@hsoft1...

Quote
> Hi,

> Colorizing question:

> When components (TEdit, TMaskedit, etc.) "Enabled" property is to
> FALSE, the text is shown dark-grey instead of the "Font.Color"
> defined in property Font. Is there a possibility to set the
> "Font.Color" of a component that has its enabled property set to
> FALSE to a color different from dark-grey ?

there is no easy way to do what you ask. the only option is, IMO, to write a
new comp.

--
Borger King: Have it our way, your way is irrelevant.
We have them exactly where they want us. (cmdr James T. Kirk)
ICQ: 91418899
http://www.planeted.co.uk
http://members.nbci.com/edduffe

Re:Setting Font.Color and background color on comps with Enabled:=False (TEdit)


Quote
"H. Hoffmann" wrote:
> Is there a possibility to set the
> "Font.Color" of a component that has its enabled property set to
> FALSE to a color different from dark-grey ?

Sorry, but that's part of the Windows color scheme selected by
the user and the way the Windows control draws itself. It only
accepts your color when the text is not selected or disabled.

Good luck.

Kurt

Other Threads