Solved

Color disabled Memo

Posted on 1997-05-07
5
441 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
[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
  • 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

Technology Partners: 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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

762 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