Hello,
I want to prevent the new window from being maximized/resized. I am aware of the "<<Modal" window, but is there an alternate way?
Found this threat but it runs a scheduler in the background which I don't prefer
https://community.jmp.com/t5/Discussions/How-to-stop-users-from-resizing-windows-in-JSL/td-p/15168
No idea how that could be done.
But if you wish to provide very annoying user experience you can use graphic scripts
Names Default To Here(1);
nw = New Window("Example", <<size(200, 200),
gb = Graph Box(
Frame Size(1, 1)
),
box = V Splitter Box(
Size(640, 480),
H Splitter Box(
Spacer Box(
<<Set Fill(1);
<<Color(RGB Color(9, 112, 84));
),
Spacer Box(
<<Set Fill(1);
<<Color(RGB Color(255, 222, 0));
)
),
H Splitter Box(
Spacer Box(
<<Set Fill(1);
<<Color(RGB Color(101, 153, 255));
),
Spacer Box(
<<Set Fill(1);
<<Color(RGB Color(255, 153, 0));
)
)
)
);
(gb << Xpath("//AxisBox")) << visibility("Collapse");
Eval(EvalExpr(
gb[FrameBox(1)] << Add Graphics Script(
Expr(nw) << Zoom Window;
);
));
Look in the Scripting Index for Window Size
w = new window("test");
w << Set Window Size( 800, 1200 );
To my knowledge you cannot easily do this, but few questions:
No idea how that could be done.
But if you wish to provide very annoying user experience you can use graphic scripts
Names Default To Here(1);
nw = New Window("Example", <<size(200, 200),
gb = Graph Box(
Frame Size(1, 1)
),
box = V Splitter Box(
Size(640, 480),
H Splitter Box(
Spacer Box(
<<Set Fill(1);
<<Color(RGB Color(9, 112, 84));
),
Spacer Box(
<<Set Fill(1);
<<Color(RGB Color(255, 222, 0));
)
),
H Splitter Box(
Spacer Box(
<<Set Fill(1);
<<Color(RGB Color(101, 153, 255));
),
Spacer Box(
<<Set Fill(1);
<<Color(RGB Color(255, 153, 0));
)
)
)
);
(gb << Xpath("//AxisBox")) << visibility("Collapse");
Eval(EvalExpr(
gb[FrameBox(1)] << Add Graphics Script(
Expr(nw) << Zoom Window;
);
));
This is a nice hack. Thanks Jarmo