LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab control does not allow to reduce its size

This is a simple tab control (LabVIEW 2020). But… Its size cannot be reduced by conventional dragging.

 

I can open its properties and set smaller size. I can set smaller size using toolbar button Resize Objects.

 

However! The tab control jumps to original size at first opportunity: when I try to resize it a little or when I place a new control in one of its tabs.

What could be the problem?

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
Message 1 of 13
(2,903 Views)

I think the control is corrupted.  Delete it and recreate it.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 13
(2,888 Views)

I found another way to fix it: Drop any control on page 2, then delete that control.

"If you weren't supposed to push it, it wouldn't be a button."
Message 3 of 13
(2,886 Views)

@paul_cardinale wrote:

I found another way to fix it: Drop any control on page 2, then delete that control.


Thank you Paul for your time. Unfortunately, this method does not work in my computer.

 

I need some simple method to fix this problem. The template is used in many places. Clones inherit the same problem. Replacing tab control everywhere manually would be a hell of work. Writing a script would also take quite a time. 

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 4 of 13
(2,828 Views)

Hi, _Y_

 

Try this one...

0 Kudos
Message 5 of 13
(2,812 Views)

@diman27 wrote:

Hi, _Y_

 

Try this one...


Thank you. Two questions:

  1. How did you solve the problem?
  2. Why size of the tab fits to content?

 

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 6 of 13
(2,806 Views)

1. I just unchecked Auto Grow in Advanced menu.
2. When Size to Fit is checked - it is normal behaviour.

 

Correction!

It looks like you have some hidden controls on page 1 and page 2. And it seems that this Tab Control is really broken because I can't find a way to unhide them.
If you create page 3 and then delete pages 1 and 2, everything works correctly.

Maybe recreation of pages 1 and 2 will solve your problem, without deleting Tab Control itself.

0 Kudos
Message 7 of 13
(2,802 Views)

@diman27 wrote:

1. I just unchecked Auto Grow in Advanced menu.
2. When Size to Fit is checked - it is normal behaviour.

 

Correction!

It looks like you have some hidden controls on page 1 and page 2. And it seems that this Tab Control is really broken because I can't find a way to unhide them.
If you create page 3 and then delete pages 1 and 2, everything works correctly.

Maybe recreation of pages 1 and 2 will solve your problem, without deleting Tab Control itself.


If there are hidden controls, they are hidden well😀 It was my first suggestion but this script did not show any more controls:

control_script.png

 

 

Deleting tabs is not an option. This template was used to create many tens of clones and each is filled with controls. Manual replacements could take lot of time.

 

Probably I should stay with semi-solution:

  • Replace the Tab Control in the template.
  • Disable Auto Grow in all clones where the problem is encountered.

However, I have few days for waiting more replies to this forum thread.

 

 

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 8 of 13
(2,782 Views)

Here is the fixed version.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 9 of 13
(2,776 Views)

@_Y_ wrote:

control_script.png


Does that catch everything, like decorations and stuff?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 10 of 13
(2,756 Views)