From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Keeping VI window from becoming topmost?

Hi!

I have a couple of linked sub-VIs, each with its own window.
This seems to work fine, but the window of the currently active
VI is always activated which makes it hard to change controls
in other windows. Is there a way to keep the active VI's
window from changing to the front every time the VI is called?
Setting FrontPanel.IsTopmost to false doesn't seem to work.
Any suggestions?

Rudolf
0 Kudos
Message 1 of 2
(2,506 Views)
Rudolf;

There is this set of VI's which make calls to Windows functions. These are some of the VI's, which include functions that may help you:

winutil.llb Window Management VIs
Window Refnum (control)
Not a Window Refnum
Get Window Refnum.vi
Get Window Name.vi
Get Window Rectangle.vi
Minimize Window.vi
Maximize Window.vi
Resize Window.vi
Restore Window.vi
Move Window.vi
Rename Window.vi
Hide Window.vi
Show Window.vi
Flash Title Bar.vi
Move Window to Top.vi
Make Window Always on Top.vi
Revoke Window Always on Top.vi
Move Window to Bottom.vi

You can obtain these utilities from NI website. However, for some reason I've been unable to find the official page from where you can download those VI's. Fortunatelly, I found them in t
he following page:

Using Window Management VIs with IMAQ Vision

the VI's are in the zip file "LVWUtil32.zip". I don't know the reason why the page is no longer available. (Maybe I look in the wrong place.) So, if I was you, will hurry up and download the VI's 🙂 .

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 2
(2,506 Views)