Solved

Color disabled Memo

Posted on 1997-05-07
5
430 Views
Last Modified: 2010-05-18
I want to use a Memo field (of type TMemo) to display some text. The box is not editable and don't want the cursor in the memofield to be displayed. To do this i disabled the memofield.
My problem no is that the textcolor than changes to the default 'no focus' color grey.
How can i control this by myself ???

0
Comment
Question by:rene041697
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:Heapster
ID: 1335979
I wouldnt use a memo for this, could you not copy the text to a non-editable text display object? i.e. a label.
0
 
LVL 4

Accepted Solution

by:
erajoj earned 50 total points
ID: 1335980
If you really, really want, for some reason, to use a TMemo
for this; then put the TMemo inside a TPanel which you disable.
Then you get what you want.

/// John
0
 

Author Comment

by:rene041697
ID: 1335981
It work's. But where i'm looking for is method of changing the color of the text when it has no focus. I suppose there is somewhere a default setting. But where??
0
 
LVL 1

Expert Comment

by:Heapster
ID: 1335982
Cant you just change the font.color property of the tmemo?
0
 

Author Comment

by:rene041697
ID: 1335983
Sure, but when you disable the memo (so you don't see the cursor)
the colour changes to the 'nonfocused' silver color. I can't find out where i can change this one.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
error 1.1 400 Bad request idhttp delphi 18 92
JAudiorecorder record freezing the app 29 67
How to build JSON File in Delphi 6 3 35
Breakpoint doesn't stop in my variable 3 28
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

823 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