LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set active window to one VI over the other

Solved!
Go to solution

The title is not a very accurate description of what I'm trying to achieve - sorry...

 

I have two VI's that run with their Front Panel Shown.  The main VI spawns the 2nd VI, which is a monitoring console.

Because the first VI (main) spawned the 2nd VI, the active window is the 2nd VI.

 

Because there are hot-keys associated with controlling the application, and the hot-keys belong to the 1st (main) VI, I would like to make the 1st VI the active window.

I thought there was an Invoke node to do this, but did not see it.

 

As badly as the title for this question is, so was my attempt at finding anything related to this by "Searching" this forum.

 

I wish I could post code, but I cannot. 

 

I was thinking of implementing something crazy like focus binding to a control on the main VI via a reference, but somehow, I don't think that will work.

 

Any suggestions?

 

0 Kudos
Message 1 of 3
(2,788 Views)
Solution
Accepted by topic author Ray.R

I'm pretty sure that this is a property node when you have scripting enabled. Just don't remember (too many properties in there)... {something was mentioned with z-direction...}

 

Alternatives:

- make it modal

- use win dll's, I'm sure there are implementations for this.

 

Felix

Message 2 of 3
(2,781 Views)

Thanks Felix,

 

Making it Modal did the trick.

 

🙂

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