Subscribe Bookmark RSS Feed

Resizing a data browserbox

Highlighted
vince_faller

Super User

Joined:

Mar 17, 2015

Running JMP 12, 

Is there a way to set the size of this display box?  There's a Get Size Command but no set size that seems to work.  I've tried Set Content Size, Inval Size, Inval, Update window.  

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp", invisible );
New Window( "School",
	H List Box(
		dg = dt << New Data Box(),
		Text Box(),
		dt << Distribution(
			ContinuousDistribution( Column( :weight ) )
		)
	)
);
dg << Set Row ID Width( 80 );

dg << Get Size;

I want to set the size of the the browser box without affecting the size of the window or the other graph.  I looked through the parents as well to see if I could resize the scrollbox but can't seem to. 

 

*Edit*  Nevermind.  Forgot about set height() and set width(). 

2 REPLIES
txnelson

Super User

Joined:

Jun 22, 2012

This is about the best I have been able to do with New Data Box()

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp", invisible );
New Window( "School",
	H List Box(
		dg = Scroll Box( size( 500, 500 ), dt << New Data Box() ),
		Text Box(),
		dt << Distribution( ContinuousDistribution( Column( :weight ) ) )
	)
);
dg << Set Row ID Width( 80 );

dg << Get Size;
Jim
Phil_Brown

Super User

Joined:

Mar 20, 2012

One container I find very useful is H Splitter Box () and V Splitter Box(). They have an explicit Size() argument. In your example...:

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp", invisible );
New Window( "School",

 hsplitBox = HSplitterBox( Size(1800,1500), 

		dg = dt << New Data Box(),
		//Text Box(),
		dt << Distribution(
			ContinuousDistribution( Column( :weight ) )
		)
	)
);

 

 

PDB