LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Popup at Pointer Location

I have a sub VI that works as a popup; it appears when the user reaches its event case.  It's really easy to make the window appear as a popup simply by adjusting the VI Properties menu, but I have very little freedom in selecting where the window appears if I'm using the VI Properties menu.

 

The event case fires when a certain control is clicked.  I want the popup to appear at the location of that control, or to at least appear in the calling VI (even if the window moves).  Is there any way to do this?

 

(I attached a picture of the how the sub VI is wired right now.  It appears when it gets the inputs and vanishes when the user is done with it, I just need to be able to move it around.)

0 Kudos
Message 1 of 2
(2,448 Views)

Hi DJDDA,

you can use a property node to read the position of your control in the entire screen. Therefore read the window position, the control position in the window and maybe the position of the control inside a cluster ot subpanel/window or tabcontrol. Calculate the absolute screen position. Set this calculated position to your popup. Use a property of the vi to do it.

 

Mike 

0 Kudos
Message 2 of 2
(2,439 Views)