10-05-2012 08:53 AM
If I have a tab control with 3 tabs and 1 graph on each, what is the easiest way to get them all the same size and in the same location?
10-05-2012 09:03 AM
This question might have been better posted on the Forums.
But as you're here. Write constants to the Properties "Position" and "Plot Area Size", using the same constants for each graph's property node. This will put them all in the same position on the front panel (each still within it's own tab) and ensure their sizes are equal.
10-05-2012 09:15 AM
Thanks for the reply and next time I will post in teh Forums instead of here. Is there a way to do it without property nodes and just the alignment tools?
10-05-2012 09:19 AM
Copy/paste a graph outside the tab control and use the alignment tools to align it horizontally to the graph in one of the pages. Then go to the other pages and align them to the one outside the tab control. Repeat vertically.
10-05-2012 09:22 AM
Thanks Christina, I have been using this method also, but it seems a bit clunky. Just wasn't sure if there was direct method that was hidden or secret.
10-05-2012 09:27 AM
The only other trick I know is to Duplicate the page of the tab control instead of adding a page and dropping a new graph.
10-05-2012 09:35 AM
There is also a small displacement coordinates floater that appears whenever you move an object around. If your take your first tab and copy the graph outside of the tab in the X direction (by holding Shift) and note the displacement on the foating tip. Then, in each subsequent tab page copy drag the graph into the new pages using Shift again to ensure only X direction movement to the same displacement as noted in the first instance. This should ensure all graphs are at the same coordinates.
10-07-2012 03:32 PM
Sometimes I solve this by adding two temporary controls ouside the Tab.
I then Align all tab items to match one of the temporary controls to the Top and to the Left of the other one.
10-08-2012 02:13 AM
This is one of the reasons we should have a floating ruler in LabVIEW...(but according to the kudos count there is only 1 other person that needs this 😉 ).
Another completely different answer to your question would be to set all the graphs to scale to pane...Unfortunately they will not scale to the tab contro - but fill the whole panel, but there are tricks to handle that. I've posted instructions and an example here.
03-11-2016 07:33 AM
wow,that's very smart!