When working with tabbed reports, I like to match the stretching behavior between the tabs. Some reports, like Distribution, do not stretch by default. If you have 10 reports stacked vertically, there is probably not enough vertical screen space to make them stretch effectively. Adding a Scroll Box around the content of this tab will give you control over the size of the tab so that the tall content does not affect other tabs:
Tab Page Box(
"Distributions",
Scroll Box(
Size( 400, 600 ),
dt << Distribution(
Continuous Distribution( Column( :weight ) ),
Nominal Distribution( Column( :age ) )
),
<<Set Auto Stretching( 1, 1 ),
<<Set Max Size( 10000, 10000 )
)
),
Reports like Graph Builder stretch by default, but this behavior can also be controlled. If you want to keep Graph Builder from stretching to match the size of one of the other tabs, you can turn off the "Fit to Window" option:
Tab Page Box(
"Graph Builder",
dt << Graph Builder(
Size( 800, 600 ),
Show Control Panel( 0 ),
Fit to Window( "Off" ),
Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
)
)
You will probably only need one of these options in order to match the behavior between the tabs. I would probably lean toward adding the ScrollBox around the non-stretchable reports. If you don't add a ScrollBox around large reports, then the scrolling will occur at the window level. The result would be that the tab titles scroll off the screen when you scroll down in the tall report, making it difficult to move back and forth between tabs.