I got another toughy. I can't get the auto centering to work inside a scroll box. Not sure if this is intended behavior or just a bug. Here's the "Set Auto Centering" Scripting Index example modified to include a Scroll Box. You can see that the auto centering/streching no longer works for objects inside the Scroll Box. If anyone has a suggestion or work around I'd appreciate it.
Names Default To Here( 1 );
//This message applies to all display box objects
New Window( "Example",
H List Box(
tv = Text Box( "V+V", <<rotate text( left ) ),
Scroll Box(V List Box(
Text Box( "resize the containing window" ),
th = Text Box( "H+H" ),
ts = Spacer Box(
<<Size( 10, 30 ),
<<Color( "blue" )
)
))
)
);
tv << set auto centering( 0, 1 );
th << set auto centering( 1, 0 );
th << set auto stretching( 1, 0 );
ts << set min size( 5, 20 );
ts << set max size( 100000, 100 );
ts << set auto stretching( 1, 1 );
Show( th << get auto centering() );
Show( ts << get auto stretching() );
Show( ts << get min size() );
Show( ts << get max size() );