LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to expand Tab Control to show full size when change to run with difference computer monitor difference resolution?

Hi Everyone,

 

How to expand Tab Control to show full size when change to run with difference computer monitor difference resolution?

 

UI.HowToExpandToDifferenceMonitorSize.PNG

 

Best Regards,

Nirut

0 Kudos
Message 1 of 2
(3,112 Views)

Hi NirutG,

 

I'm not exactly sure what you mean, so I'll answer both ways that seem most likely to me:

 

  • You want to resize the background area of the tab control to fill the same fraction of the window when you make the window larger or small (for example, because you're changing the monitor resolution)

Right click on the tab control and choose "Scale Object with Pane". This will make the tab control resize, but not any of the things inside it!

 

  • You already knew that, or you're not worried about that, and you want to make the things inside the tab resize with the tab control area.

This is a little harder, because basically LabVIEW isn't amazing at resizing things in a nice way. However, what you can do to make it a little easier for yourself is to decide exactly how you want the resizing to work (for example, should the graph fill all available space, and the left hand size be a fixed size?).

Normally what you'd want to do is use Splitter Bars to break the pane into smaller sections, then use the splitter properties via right-click menu to adjust how the window distributed the space, then use the "Scale Object with Pane" or "Fit Control to Pane" to have it automatically resize.

Here, the tab control will upset you - it can't contain a splitter bar, because it isn't a pane.

A good option here is to remove the tab control, and use a Radio Button control with perhaps customized appearance and a SubPanel to control the front panel of your main VI. This requires a bit more programming than a tab control, but is easier to have good behavior with because you have more control.

 

If you want to stick with the Tab control, I think you'll have to use the VI Server to adjust the height and width along with perhaps the position of objects according to the size of the tab control. This is messy work and not very extensible or reusable typically, but it can be what you might need.

 

Does this help/solve your problem, or did I miss the issue?


GCentral
Message 2 of 2
(3,093 Views)