Board index » delphi » Memo Component - Turning Off Cursor?

Memo Component - Turning Off Cursor?

How can I turn off the cursor in a Memo component?  I need to display
some text for information only and do not want the cursor to be
visible.

Thanks...

Ralph

 

Re:Memo Component - Turning Off Cursor?


On Sun, 23 Dec 2001 05:51:15 GMT, ra...@primemail.com (Ralph Freshour)
wrote:

Quote
>How can I turn off the cursor in a Memo component?  I need to display
>some text for information only and do not want the cursor to be
>visible.

>Thanks...

>Ralph

Make the memo read-only and put this in OnKeyDown and OnMouseDown:

HideCaret( (Sender as TMemo).handle );

Other Threads