Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change enabled color to TEdit / TDBEdit component

337 views
Skip to first unread message

Bernardi Gian Claudio

unread,
Nov 25, 1997, 3:00:00 AM11/25/97
to

I can change the color of text for an enabled TEdit control at run time? If
yes how?

Tkanks for help!!!!
--
Bernardi Gian Claudio - poc...@iperbole.bologna.it


Kurt Barthelmess (TeamB)

unread,
Nov 26, 1997, 3:00:00 AM11/26/97
to

Bernardi -

Change the Font's.Color property to the desired color.

Good luck.

Kurt

Bernardi Gian Claudio

unread,
Nov 26, 1997, 3:00:00 AM11/26/97
to

Sorry but I would change color to component when enable property was false
not true .....

--
Bernardi Gian Claudio - poc...@iperbole.bologna.it

Kurt Barthelmess (TeamB) <71333...@compuserve.com> scritto nell'articolo
<347bc0f7...@forums.borland.com>...

Kurt Barthelmess (TeamB)

unread,
Nov 27, 1997, 3:00:00 AM11/27/97
to

Bernardi -

No. The "disabled text color" is like the window background color. The
user chooses it.

Good luck.

Kurt

Scott Samet [TeamB]

unread,
Nov 27, 1997, 3:00:00 AM11/27/97
to

In article <01bcf9ee$11d5fae0$736263c3@bjc>, Bernardi Gian Claudio wrote:

> 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.


Eddie Shipman

unread,
Dec 1, 1997, 3:00:00 AM12/1/97
to Sen...@no.spam

You can do it by catching the WM_CTLCOLOREDIT message and changing it
there.

Eddie Shipman

unread,
Dec 1, 1997, 3:00:00 AM12/1/97
to

OOPS, that was for a DISABLED edit control.

0 new messages