LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enter Key Down and Simultaneous Control Write

Solved!
Go to solution
I am trying to create a dialog with one field with the behavior such that, after the user fills in the field and hits the enter or return key the new value is returned.  However, the problem I am running into is that the Key Down event cancels the write to the control from occurring.  I can't use the Value Change event because the user has the choice to leave the value the same and just hit enter (i.e. No change).  Any ideas or suggestions?
Quentin "Q" Alldredge

Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner



0 Kudos
Message 1 of 4
(3,052 Views)
Solution
Accepted by topic author TheQ
Right-click on the "String" control and select "Update Value while Typing".
Message 2 of 4
(3,047 Views)
Is there a way to do it with a numeric control instead of a string?
Quentin "Q" Alldredge

Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner



0 Kudos
Message 3 of 4
(3,021 Views)

Yes, but you have no monitor every key press within the numeric control to wait for a return character, and exit on that.

 

I knocked up a quick example (attached, LV 8.5.1)

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 4 of 4
(3,010 Views)