LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

centering GUI in LabVIEW

Solved!
Go to solution

John,

 

You should be able to use property nodes.  A VI property can give you the FP.PanelBounds parameters which will tell you how large the panel is.  A panel reference can give you access to references to the decorations and controls.  Their Position and Bounds properties can tell you where things are.  You can then modify the appropriate properties to get the look you want.

 

Lynn 

0 Kudos
Message 11 of 18
(2,501 Views)

Building on Lynn's comment

 

 

 

Download All
Message 12 of 18
(2,496 Views)
jack47 - you did it!  awesome.
Message 13 of 18
(2,493 Views)
Thanks Nickerbocker, I think that was the most enthusiastic response to any code I have ever written.  All the posts seemed to be circling around that solution, of course they may be a better way to do it...
0 Kudos
Message 14 of 18
(2,489 Views)
Nice one - much appreciated. Do you think I could group all the objects on my front panel and then use property nodes to set the position of the group? This would be easier than setting the position of every item individually.
0 Kudos
Message 15 of 18
(2,466 Views)

You can try, I'm not sure how to get the reference to the group.  I tried grouping and moving the decoration, but the graph and boolean did not move.  One item, you can set the origin to the upper left corner to help incase someone drags the scroll bars around.

 

 

Message Edited by jack47 on 09-03-2009 03:56 PM
0 Kudos
Message 16 of 18
(2,460 Views)
Solution
Accepted by topic author eichlerjw

right. Thanks to user "Ben" over here http://forums.ni.com/ni/board/message?board.id=170&thread.id=438359. He gave me the idea of use a tab control to group the items and then using property nodes to control the position of the tab control. Vi's attached.

 

What do you think?

 

Download All
0 Kudos
Message 17 of 18
(2,431 Views)
I think that's a great solution.  The controls keep their location on the tab.
0 Kudos
Message 18 of 18
(2,411 Views)