LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the Event not be committed Information?

I am using the EVENT_LEFT_CLICK to get the original control Value and disable the update of this field. Then using EVENT_COMMIT to set the new value and enable the field update. I have a problem to set the correct update status because if the user has triggered only the EVENT_LEFT_CLICK without EVENT_COMMIT, this field will never be updated later. This happens when I am using the Ring control and the user pull down the list without selection(the pull down list will be disappeared when the user touch outside of the field). Is it possible to get the not been committed event from the callback function?
0 Kudos
Message 1 of 6
(3,300 Views)
You should get a EVENT_LOST_FOCUS when this occurs. You could be checking for this event after an LEFT_CLICK has occurred and before a EVENT_COMMIT.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 6
(3,300 Views)
I'd like to know in which LabWindows version I can have the "EVENT_LOST_FOCUS'? I am using LabWindows/CVI version 5.0.1 and can't find it.
0 Kudos
Message 3 of 6
(3,300 Views)
Thanks, I found it and it works well.
0 Kudos
Message 4 of 6
(3,300 Views)
Are there other events that can be gotten right away than the EVENT_LOST_FOCUS in my case? If there is no other focus event happens after EVENT_LEFT_CLICK, this may still be a problem.
0 Kudos
Message 5 of 6
(3,300 Views)
No, there aren't any other events. It may be that you will need to have LEFT_CLICK event handlers on the panel and all other controls that handle your case. That way if the user left clicks on the ring, then clicks anywhere off of the ring, you are handling it. The EVENT_LOST_FOCUS is the only event that will be sent the the ring when you click off of it on another control.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 6 of 6
(3,300 Views)