LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
JackDunaway

New Run-Time Window Postion Option: Center on Caller

Status: New

The current method I use for centering a subVI called from a caller ("parent") VI is rather involved:

 

CurrentCenterOnParent.png

 

Instead, a new property should be introduced to the Run-Time Position under VI properties:

 

ProposedCenterOnParent.png

 

The shortcoming of not being able to have a subVI popup center on the parent is something that has bugged me in the past, and I was inspired by lvABC's idea to create this broader idea that would apply to all subVI's.

 

 

 

12 Comments
lvABC
Member
You beat me by few minutes!
I am glad, I am not the only one who always center FP to Parent open FP.
elset191
Active Participant
I just made a thread about this here
--
Tim Elsey
Certified LabVIEW Architect
muks
Proven Zealot
Good ask. Kudos.
CrystalTech
Member
Thank you for posting this.  I've been using the same centering calls for years.  It's about time it is incorporated as a simple selection.
CrystalTech
Member
Yes, it is about time it is a simple selection.  I've also been using the centering functions for years.  Thanks.
Mads
Active Participant
soupy
Member
Even more useful if you can "Center on Top VI" as the calling VI is not always visible.
JackDunaway
Trusted Enthusiast

Just realized that in addition to this Idea, and more generically, I would like to see a method that allows a VI to center on any other VI. I realized that the above idea of a statically-defined window would not necessarily mesh well with a SubPanel or plugin UI architecture.

 

VICenterInvokeNode.png

 

 

***EDIT*** Just read through the link elset191 posted in the second comment above, and found Darin.K's post which highlights a function that probably performs identically to above described method.

LabBEAN
Active Participant
"Center on Caller Monitor" could be helpful as well for the case where the dialog you're launching is larger than the caller.  Why does this only have 60 Kudos?

Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
PhillipBrooks
Active Participant

The math portion can be simplified a bit using this function:

 

vi.lib\picture\PictureSupport.llb\CenterRectInBnds.vi

 

CenterRectInBnds.jpg