08-12-2009 04:10 PM
Solved! Go to Solution.
08-12-2009 04:14 PM
08-12-2009 04:35 PM
08-12-2009 05:39 PM - edited 08-12-2009 05:40 PM
btram wrote:
I've found a way to use the position property to reorient the contents to whatever location desired in the VI front window but still need a way to use that position to change the location of the contents...
I am a little confused now. What do you mean by reorient the contents to whatever location, and how is that different than changing the location of the contents? Changing the location of the contents implies moving them, which is what the position property does. Are you looking to scale your contents with the front panel? That's a whole different matter with its own set of problems. You can set objects to scale with the pane (with mixed results), but I don't believe there is a way to programmatically change the bounds of an individual control (at least in LV8.2).
08-12-2009 07:33 PM
08-13-2009 10:25 AM
08-13-2009 10:37 AM - edited 08-13-2009 10:39 AM
Well, you're still saying you want to move objects.
I center all of my GUI's with the node shown. In this case, 10/-1000 was where the contents I wanted the user to see were located. Even if I save the VI while the front panel is off-center, it will always start in the exact place every time. Now, if I move objects manually off the ROI, I have to re-adjust that node.
Another (better?) way is to use OpenG's Fit VI Window to Content or (the one I like better) Fit VI Window to Largest Decoration. Either of these methods will position your pane to the stuff that is in it. In the later case, make a big box the size of your pane, and pow!
You're either moving objects or moving the pane relative to the objects, take your pick.
08-13-2009 11:03 AM
you can use the property node bounds>>all elements
08-13-2009 11:19 AM