LabVIEW Idea Exchange

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

Add Control Anchors to Labview

Status: New

.net and many other languages have an intuitive and simple way to allow you to define how a window behaves when you resize it: anchors.  Anchors allow you to define the distance between an edge of a child control and the edge of a parent control regardless of the size of the window. The size of the control itself stays constent unless it violates the rules of the defined anchors in which case it changes sizes to meet those rules. For example a front panel with the following anchors:

 anchor1.png

 

Would be resized into:

 

anchor2.png

5 Comments
tst
Knight of NI Knight of NI
Knight of NI

You can do this today using panes (at least the specific example in your image), but I agree that this appears to be more intuitive and powerful and it's probably worth examining this as another option.


___________________
Try to take over the world!
manu.NET
Active Participant

Hello,

 

You can have a look to this existing idea :

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Advance-docking-and-anchoring-features-in-Labview-fron...

 

Manu.

Manu.net
JKSH
Active Participant

Definitely a step in the right direction!

 

Setting up anchors becomes cumbersome on complex GUIs though. I suggest extending this idea to include other mechanisms, like automatic layout management and nested layouts (e.g. Column layouts, Row layouts, Grid layouts)

 

See https://msdn.microsoft.com/en-us/library/ms951306.aspx for a range of mechanisms to manage resizable GUIs.

Certified LabVIEW Developer
Manzolli
Active Participant

I like the smart way that yEd behaves.

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
JW-JnJ
Active Participant

Yes, yes, yes. I'm constantly fighting scaling and I hate using panes because one inveitably scrolls after I get rid of scrollbars.

 

I love this. It's simple and elegant. It allows 4 checkmark menus of "Anchor Left","Anchor Right","Anchor Top","Anchor Bottom".

Josh
Software is never really finished, it's just an acceptable level of broken