Jump to content

Event when starting to edit a string control?


Recommended Posts

Hello fellows,

I'd like to have an event fired as soon as the user clicks into a string control to start editing it... the idea is that everytime the user starts to edit this control, the windows virtual on-screen keyboard shall be launched, because the user has problems with typing on the small keyboard....

Is this event available? I tried "Mouse Enter" and "Mouse Leave", but this doesn't really fit.

Any ideas?

Sabine Lorentz

Link to comment

QUOTE (professor_rumsdiegeige @ Apr 29 2009, 09:04 AM)

Hello fellows,

I'd like to have an event fired as soon as the user clicks into a string control to start editing it... the idea is that everytime the user starts to edit this control, the windows virtual on-screen keyboard shall be launched, because the user has problems with typing on the small keyboard....

Is this event available? I tried "Mouse Enter" and "Mouse Leave", but this doesn't really fit.

Any ideas?

Sabine Lorentz

I think the "mouse up" event will do the job.

hope this helps

Link to comment

QUOTE (professor_rumsdiegeige @ Apr 29 2009, 11:24 AM)

Is there, in general, a description available of the individual events? Or is it try-and-error?

If you right click the event structure and select Help, it will open the LabVIEW help, which includes a listing of all the events (there aren't that many).

Link to comment

Here are two other ideas:

One is to enable "update while typing" on the string control. Then you will get the value changed event after the first letter. Maybe not quite what you want but easy to do.

The other is to cover the string with a transparent boolean. When the user clicks the boolean (thinking they will click into the string underneath), you hide the boolean (visible=F), set the string's Key Focus to true, and then show the virtualkeyboard. Whenever the virtual keyboard goes away, you make the transparent boolean 'visible' again.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.