Tkanks for help!!!!
--
Bernardi Gian Claudio - poc...@iperbole.bologna.it
Change the Font's.Color property to the desired color.
Good luck.
Kurt
--
Bernardi Gian Claudio - poc...@iperbole.bologna.it
Kurt Barthelmess (TeamB) <71333...@compuserve.com> scritto nell'articolo
<347bc0f7...@forums.borland.com>...
No. The "disabled text color" is like the window background color. The
user chooses it.
Good luck.
Kurt
> I can change the color of text for an enabled TEdit control at run time? If
> yes how?
Do you mean disabled?
Place the edit on a panel. Leave the edit enabled, and set the Edit.Color
and Edit.Font.Color as desired. Enable/disable the panel instead of the
edit.
You can do it by catching the WM_CTLCOLOREDIT message and changing it
there.
OOPS, that was for a DISABLED edit control.