Solved

Font color in disabled memo

Posted on 2002-03-22
2
619 Views
Last Modified: 2013-12-03
Hi

Is it possible to decide which font color that should be used in my disabled memo ? or is that something that windows decides and can't be changed
0
Comment
Question by:bnz
2 Comments
 

Expert Comment

by:Rabster
Comment Utility
This is set in the Controls unit. I think it may be possible to override the function using an instance of TCustomMemo.
0
 
LVL 17

Accepted Solution

by:
inthe earned 100 total points
Comment Utility
hi,
yes it is stoppped by windows but you can cheat ,

put a panel on the form
put the memo on top of the panel and set align to client

on some buttons do:

procedure TForm1.Button1Click(Sender: TObject);
begin
 panel1.Enabled := false;
 memo1.Font.Color := clred;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
 memo1.Font.Color := clDefault;
 panel1.Enabled := True;
end;


works nicely :)
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now