Subscribe Bookmark RSS Feed

Constraining Layouts

thickey1

Community Trekker

Joined:

Jun 4, 2015

I want to improve the layout of an app I am writing. My script generates a simple report which is a tall and wide table which I want to put on a GUI. However, when I place the display item into my GUI JMP Seems to set some default sizes and adds scroll bars. Is there a way to override these constraints. Or, indeed a better way to perform this type of layout...I tried using a splitter box but see the same issue.

 

layout.jpg 

2 REPLIES
thickey1

Community Trekker

Joined:

Jun 4, 2015

heading	= textBox("Application",<< fontColor("red"),<< setFontSize(24),<< setFontStyle("bold"));
table = open("C:\libYa\docs\Snippets\Splitter Box\randomData.jmp", invisible) << getAsReport();
spacer1 = spacerBox(size(1450,1));
spacer2 = spacerBox(size(1450,500));

platform = newWindow("Random Data", 
	vListBox(
		heading,
		panelBox("Random Data", vListBox(spacer1,table)),
		panelBox("Bottom Layout", vListBox(spacer2))
	);
);
platform << setWindowSize(1500, 800);
mpl34

Community Trekker

Joined:

Feb 16, 2016

I had a similar issue and ended up putting in a scrollbox, something like:

heading	= textBox("Application",<< fontColor("red"),<< setFontSize(24),<< setFontStyle("bold"));
table = open("C:\libYa\docs\Snippets\Splitter Box\randomData.jmp", invisible) << getAsReport();
spacer1 = spacerBox(size(1450,1));
spacer2 = spacerBox(size(1450,500));

platform = newWindow("Random Data", 
	scrollbox(
		size(1500,800),
		vListBox(
			heading,
			panelBox("Random Data", vListBox(spacer1,table)),
			panelBox("Bottom Layout", vListBox(spacer2))
		);
	)
	
);
platform << setWindowSize(1500, 800);