Solved

Font color in disabled memo

Posted on 2002-03-22
2
625 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 100 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…

756 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