LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set focus to a SubVI?

I am calling a dialog style SubVI. Even though I am using the FP.IsFrontmost property, the focus stays on the caller. Therefore also setting the KeyFocus property on an "OK" button of the SubVI won't work. Any ideas? (LV7.1)
0 Kudos
Message 1 of 2
(3,031 Views)
Have you changed the windows properties of the subVI to "dialog"? (VI properties..windows appearance).

... or if you "customize..." the apperance, make sure to select "Windows behavior: modal"

(Quote from the help:
Modal � Keeps the front panel on top of all other LabVIEW windows until you close the window or open another modal window. You cannot interact with other windows while a modal window is open. Most dialog boxes in LabVIEW are modal windows, such as the Options dialog box.)
0 Kudos
Message 2 of 2
(3,031 Views)