Is there a way to prevent a window from scrolling to the location of added boxes? In the following example script, pressing the "Add Spline" button will add a new spline with half the lambda value from the one before, and after pressing the button 6 or so times, the window scrolls away from the graph to the location of the newly added control spline.
This is an example -- the solution IS NOT to simply remove the other control charts from the display. In my actual code, I remove the control chart with the biv << (Curve[1] << Report( 0 )) command, but it scrolls nonetheless.
Any help would be greatly appreciated.
Thanks!
Names Default To Here( 1 );
n = 100;
New Window( "test",
V List Box(
b = Button Box( "Add Spline",
n = n / 2;
obj << Fit Spline( n, Standardized );
),
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = Bivariate( Y( :Weight ), X( :Height ) );
obj << Fit Spline( n, Standardized );
)
);