LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure and Events

Started using the Event Structure. Seems that the events that I can use are
restricted by LV. How can I capture Lost Focus event? I have a string
control, when user enters TAB or moves the mouse to next control, I want to
detect it and verify contents of the string control before allowing entering
text in the next control.

Any help is appreciated.


vishi
0 Kudos
Message 1 of 3
(2,860 Views)
Yes, the events that can be detected are defined in LabVIEW. See the attached example. It warns if the entry is non-numeric, clears the entry and returns focus to the string control. The only hitch is if user doesn't enter anything.

If you're restricting user to certain choices, would a text ring work?

Hope this helps.

Tim
0 Kudos
Message 2 of 3
(2,859 Views)
> Started using the Event Structure. Seems that the events that I can use are
> restricted by LV. How can I capture Lost Focus event? I have a string
> control, when user enters TAB or moves the mouse to next control, I want to
> detect it and verify contents of the string control before allowing entering
> text in the next control.
>

You can also detect this by just using the Value Change event. When the
string loses focus, if the value was changed, then the event will be
fired, otherwise it will not.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,859 Views)