Recent

Author Topic: Can a text in a TMemo become unselectable and unable to copy  (Read 4933 times)

Danail

  • Full Member
  • ***
  • Posts: 151
Can a text in a TMemo become unselectable and unable to copy
« on: December 09, 2007, 10:28:10 am »
Thanks in regards to all who will post me back. My question is if the text of the memo can be made impossible for copying and changing with active vertical scroll bar, so it can be red. I used the ReadOnly property of the memo, and pasting in the memo was protected, but the text in it still can be copied. I used Memo1.Enabled := False; in the code, and achieved no clicking and copying of the text, but the memo scroll bar become inactive. Is there anything else I can do?

antonio

  • Hero Member
  • *****
  • Posts: 605
RE: Can a text in a TMemo become unselectable and unable to
« Reply #1 on: December 09, 2007, 03:21:11 pm »
You could use a component which is not a WinControl, like a TLabel. You  could also assign Ctrl+C to another task, etc. Why do you need to do so?

Danail

  • Full Member
  • ***
  • Posts: 151
Can a text in a TMemo become unselectable and unable to copy
« Reply #2 on: December 10, 2007, 07:14:36 am »
TLabel can't hold a long text with many lines and do not have a scroll bar. Even referring Ctrl + C to another task the copy- paste with the right click of the mouse remains.

 

TinyPortal © 2005-2018