08-09-2017 04:45 AM
I need to move a Vi on the primary display to a different position (simulating a user dragging it somewhere)
Basically I need to ensure that sub vi's open in a particular place, but Sub-Panels cannot be used (Another software package is in use that calls Vi's and doesn't support Sub-Panel usage)
I want the sub vi to open and on the first execution loop move to the position that is passed through inputs. Is this possible?
08-09-2017 04:59 AM
Use a property node linked to the VI to get a reference to the Front Panel and then another property node to set the panel's position.
08-09-2017 05:01 AM
If it is always going to be the same place, go to VI Properties (Ctrl+I) on the subVI, choose Window Run-Time Position from Category, and set the position.
If you are going to programmatically choose the position, you can use a property node. There is a document here:
How Can I Programmatically Move My Front Panel to Desired Position in LabVIEW?