Page 1 of 1

Is there a way to hide/show the caret?

Posted: Sun Nov 28, 2010 9:41 pm
by RalphMDS
Hello all,

Does anyone know if there is a way to show or hide the caret -- basically the equivalent of the old SET CURSOR command?

I have a window of data-bound text fields. I toggle the fields' "readonly" properties depending on if the user is allowed to edit the record. I would like to shut off the caret if the user is not allowed to edit the record. (I do not want to disable the fields instead).

Thanks for any help,

Ralph

Re: Is there a way to hide/show the caret?

Posted: Mon Nov 29, 2010 6:33 am
by Rathinagiri
I think we have to call HideCaret of Win32 Api.

http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Let me try.