2

I have an TRichEdit. When I select some text and click on another element, the selection of the selected text disappears. Is there a way to keep this selection, also when the TRichEdit has los it's focus? Thanks!

mjn
  • 36,362
  • 28
  • 176
  • 378
gonzales
  • 401
  • 1
  • 9
  • 20

1 Answers1

12

TRichEdit has a property HideSelection which is True by default. If set to False then the selection will still be visible even when the TRichEdit does not have focus.

BTW: the propery HideSelectionexists on other controls as well. It is also very usefull on a TListView or a TTreeView when you are showing details of the selected item in the listview or treeview.

Otherside
  • 2,805
  • 22
  • 21
  • Thanks, I had in mind that there's an option, looked at the properties 3 times but it seems i've overlooked it. Ty ;) – gonzales Aug 31 '10 at 15:16