Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

Color disabled Memo

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
rene041697
Asked:
rene041697
  • 2
  • 2
1 Solution
 
HeapsterCommented:
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
 
erajojCommented:
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
 
rene041697Author Commented:
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
 
HeapsterCommented:
Cant you just change the font.color property of the tmemo?
0
 
rene041697Author Commented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now