?
Solved

Color disabled Memo

Posted on 1997-05-07
5
Medium Priority
?
455 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 150 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 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