Set Text Cursor to Control in LabVIEW Programatically

Updated Oct 22, 2023

Reported In

Software

  • LabVIEW

Issue Details

In LabVIEW, I would like to make sure that the user's text cursor is placed in the appropriate field programatically. How can I achieve this functionality?

Solution

This functionality can be achieved through the utilization of the Key Focus property in LabVIEW. The image below shows an explicit property node for a string indicator which first clears a string control and then places a users text cursor (key focus) on that control:
 
  

Additional Information

For information regarding resetting the user's mouse cursor position, see the Setting Cursor Position Programmatically With LabVIEW  example.