LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change size of tab control programmatically based on the size of monitor screen

Hi,

I'm doing a software for cnc machines and I have a tab control in my program and each page has different amounts of controls on it. I would like to know how I can make the tab control pages resize automatically, only to fit the tab control on my monitor screen size and i want the controls in each tab also to be resized.

0 Kudos
Message 1 of 9
(4,708 Views)
Hi,
Have you tried to set "fit control to pane" with right clic on tab ?
Franco
0 Kudos
Message 2 of 9
(4,673 Views)

That will work only for vi's with single pane,but vi has multiple panes

0 Kudos
Message 3 of 9
(4,667 Views)
I made a vi with tree panes, the tab is in the lower one and it works good.
0 Kudos
Message 4 of 9
(4,662 Views)

please give a screenshot of your front panel..

0 Kudos
Message 6 of 9
(4,645 Views)
now i am in holiday, as soon i came back to my office, i will post the screenshot
0 Kudos
Message 7 of 9
(4,634 Views)

Right clicking the tab control and selecting 'size to pane' will cause the tab control to fill the pane it is in and grow/shrink with the pane. See the attached VI (LV2013).

 

You can also write to the PaneWidth and PaneHeight property of the Tab control to set it programmatically. There is also a property somewhere that causes the tabs to fill the width of the pane as well.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 8 of 9
(4,620 Views)

but when i do this labels of the controls are not resizing,,how to fix this

0 Kudos
Message 9 of 9
(4,605 Views)