Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Font color in disabled memo

Posted on 2002-03-22
2
Medium Priority
?
629 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Expert Comment

by:Rabster
ID: 6888410
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 400 total points
ID: 6888423
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

704 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