Is there a way to hide/show the caret?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
RalphMDS
Posts: 21
Joined: Wed Mar 25, 2009 1:24 pm
Location: New Jersey, U.S.A.

Is there a way to hide/show the caret?

Post 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
When your toolbox only contains a hammer, everything looks like a nail...
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

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

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply