Choose Language Hide Translation Bar
thickey1
Community Trekker

Constraining Layouts

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 

0 Kudos
2 REPLIES 2
thickey1
Community Trekker

Re: Constraining Layouts

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);
0 Kudos
mpl34
Community Trekker

Re: Constraining Layouts

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);
0 Kudos