03-20-2015 10:09 AM
Hello,
I try to develop an application which contain four graphs. This graphs are in a TabControl (Tab Selection =1) and must be resizable when the user change the size of the windows. The proportions souhld be the same.
The attached file show that i need but is there an efficient way to develop it ?
Thank you
Djamel
03-20-2015 01:51 PM
Considering that the graphs are in a container (I Hate Tabs) there is no way to automatically scale them with the resize of the container that resizes with the pane it is in.
You COULD use the panel resize event or the pane size event to read the new container bounds and resize the graphs with a bit of math.
Make sure you set the windows minimum size properties.
Easier, Just get rid of the Tab and set the VI Property.windows size.scale all = T Only available on single pane panels and tabs create a new pain[SIC]
03-20-2015 08:26 PM
03-20-2015 09:34 PM
@mikeporter wrote:
It's always a really good idea to avoid tabs ESPECIALLY when graphs are involved. Tab controls are a great evil, ranking just below "Very Brady" christmas specials.
Mike...
I hate tabs. Check my tag cloud! But, I've never heard it put so eloquently before.
03-21-2015 01:34 PM
I have done this before using sub-panels instead of tabs, with a row of buttons to choose which sub-panel vi to load in place of the tab strip.
This has several advantages including
(a) the sub panels can be resized and contain splitters and all that other rather second rate resizing functionality that LabView offers (I wish they would take a leaf out of the .net UI experience, but I think I'll be too old to care by the time NI gets into the 21stC with their UI)
(b) your sub-panel vis can be easily dropped in to other projects = incredible time saver (I have used my graph panel in multiple projects).
Well worth looking into.
Stu.
03-21-2015 03:36 PM
03-21-2015 03:46 PM
Hello
Thank you to all of you for yours answers.
So i will try to use subpanel instead of tabcontrol
Djamel