LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pressing enter when updating control

Solved!
Go to solution

I am hoping this is simple, but I just cannot seem to find the answer by searching.  I'd like the attached VI to function as follows:

 

Entry text in the field, click up date and the indicator updates via the event structure.

 

Unfortunatly it looks like I need to Entry text in the field, PRESS ENTER, click up date and the indicator updates via the event structure.

 

To me this is not neccesarily intuiative to a user.  There has got to be a simple way to do this right?

 

Thanks

Trent

Download All
0 Kudos
Message 1 of 3
(2,929 Views)
Solution
Accepted by topic author obsessed

1. Instead of using the "mouse down" event on the Update button, use "Value Change"

2. In the properties of the Update button, change the "Operation" tab to be "Latch when pressed".  This is the default for all buttons, did you change it?

3. Move the icon for the "Update" button into the event case for it.

 

That should do it.

 

As a general rule, all buttons that are "click to do something" (i.e., not just an option toggle) should be set to "Latch when pressed" and should be inside of whatever event case triggers off of their value change.  You want to use "Value change" instead of "Mouse down" as it is possible to click buttons by tabbing to them and pressing enter.

0 Kudos
Message 2 of 3
(2,919 Views)

Yup that fixed it.  

 

Thanks so much and yes I had messed with the Operations when I was trying to get it to function the way I wanted.

 

It looks like using the value change made the biggest impact though.

0 Kudos
Message 3 of 3
(2,895 Views)