LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Position Sub VI front panel

Is there an easy way of positioning the Front panel of a sub VI on a coordinate point of the calling VI?

 

 

Dan Shangraw, P.E.


   

0 Kudos
Message 1 of 4
(3,288 Views)

Sure.  There are property nodes to determine the window position of the calling VI.  Likewise the same property nodes would be used with the subVI to set its window position.

0 Kudos
Message 2 of 4
(3,266 Views)

Yep,

 

Was playing around with the property nodes and wasn't having any luck.  I was hoping for something quick and dirty.

 

Finally figured out what I needed to do using property nodes.  IMHO the naming convention used is a little counterintuitive.

 

Anyway here is a little VI I came up with that converts coordinates obtained from an event structure that is relative to the current VI origin and converts it into what I call "global" coordinates (i.e. relative to the origin of the monitor).

 

Dan

Dan Shangraw, P.E.


   

0 Kudos
Message 3 of 4
(3,248 Views)

I just found the SnapToPanel utility on the community.

 

 

Description

 

The SnapToPanel VI enables you to position a Target VI window relative to a Reference VI window.

 

Use the SnapToPanel VI in your application to control the position of sub-panels relative to the main application panel.

 

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(3,243 Views)