LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Have text field get focus in a pop over dialog

Solved!
Go to solution

I am trying to get the attached dialog to

 

1. pop up over any other application that might be running, and

2. have the string control ("Combined scan of all 4 bar codes") get focus

 

In the VI I set the string control KeyFocus property to True.

 

dialog.PNG

 

If I click the run arrow from the dialog front panel, it works as expected.

 

If I click the run arrow from the dialog diagram, the OK button has focus. If TestStand calls the VI, the VI pops up but the title bar doesn't have focus. When I click on the title bar, the "OK" button has focus.

 

In the VI Properties->Window Appearance, I choose Custom over Dialog because Dialog does not bring the VI to the front when TestStand calls the VI. Here are my customized window appearance settings for the dialog:

 

customize window appearance.PNG

0 Kudos
Message 1 of 3
(2,913 Views)

Found the issue.

 

preferred execution system.PNG

 

the preferred execution system was 'user interface'. It needed to be standard, as it turned out.

0 Kudos
Message 2 of 3
(2,909 Views)
Solution
Accepted by topic author stephenb2

This is what I needed; I was unaware this existed: Making Dialog Boxes Modal to TestStand.

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