alukindo Posted June 25, 2007 Report Share Posted June 25, 2007 Hi: I am trying to make a subVI get focus, remain active, and be front-most once deployed. However, when I launch a subVI, whose front panel is set to open when called, the lauched subVI does not have it's title bar 'activated'. This remains so even after setting the subVI is set to be front-most. Also, setting the the 'Activate' argument to TRUE on the 'Open Front Panel' method does not seem to fix this problem. Does anyone know of a work-around for this? I know that a modal subVI can do the trick. But I do not want this specific subVI to be modal. Anthony Quote Link to comment
Wolfram Posted June 25, 2007 Report Share Posted June 25, 2007 There is a "BringToFront" method that might be helpful. The "BringToFront" method can be found in the application class. Otherwise you have to use some Windows API functions. Wolfram Quote Link to comment
Karissap Posted June 25, 2007 Report Share Posted June 25, 2007 You could also set the vi property to floating. This will let you do things like minimise, use controls on another vi etc but the window will always be on top. Quote Link to comment
alukindo Posted June 27, 2007 Author Report Share Posted June 27, 2007 Hi Wolfram: Thanks for pointing me to this property. I did not expect this to be an application's property given that it works operates on the front panel. So I never really bothered to look there. This one works great for the main, top level, front panel. Anthony Hi Karissap: I use floating windows all along. The subVIs do stay on top but they never have the focus when launched until one clicks on the SubVI front panel. Thanks Anthony Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.