<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Preventing New Window from being maximized/resized? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801341#M97694</link>
    <description>&lt;P&gt;To my knowledge you cannot easily do this, but few questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The most important question: why would you want to prevent user from resizing a window (doesn't really fit the feeling of JMP to not be able to resize a window).&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;One window in JMP which prevents you from maximizing it and it is Legend window but you can still resize it so maybe there is a way to disable maximizing&lt;/LI&gt;
&lt;LI&gt;Other is Caption() but it is it's own thing&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;If you wish to prevent resizing, why not use modal window?&lt;/LI&gt;
&lt;LI&gt;Is there a specific issue in using scheduler?&lt;/LI&gt;
&lt;LI&gt;That thread has the most probable answer: you might have to go outside the &lt;STRONG&gt;scripting&lt;/STRONG&gt; language and do it from the operating system&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Mon, 23 Sep 2024 14:12:40 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-09-23T14:12:40Z</dc:date>
    <item>
      <title>Preventing New Window from being maximized/resized?</title>
      <link>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801318#M97692</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to prevent the new window from being maximized/resized. I am aware of the "&lt;STRONG&gt;&amp;lt;&amp;lt;&lt;EM&gt;Modal&lt;/EM&gt;&lt;/STRONG&gt;" window,&amp;nbsp;but is there an alternate way?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Found this threat but it runs a scheduler in the background which I don't prefer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.jmp.com/t5/Discussions/How-to-stop-users-from-resizing-windows-in-JSL/td-p/15168" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/How-to-stop-users-from-resizing-windows-in-JSL/td-p/15168&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__0-1727098266586.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68534i81DADF8B3EAD97DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__0-1727098266586.png" alt="Jackie__0-1727098266586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:00:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801318#M97692</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2024-09-23T14:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing New Window from being maximized/resized?</title>
      <link>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801339#M97693</link>
      <description>&lt;P&gt;Look in the Scripting Index for Window Size&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;w = new window("test");
w &amp;lt;&amp;lt; Set Window Size( 800, 1200 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:09:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801339#M97693</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-09-23T14:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing New Window from being maximized/resized?</title>
      <link>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801341#M97694</link>
      <description>&lt;P&gt;To my knowledge you cannot easily do this, but few questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The most important question: why would you want to prevent user from resizing a window (doesn't really fit the feeling of JMP to not be able to resize a window).&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;One window in JMP which prevents you from maximizing it and it is Legend window but you can still resize it so maybe there is a way to disable maximizing&lt;/LI&gt;
&lt;LI&gt;Other is Caption() but it is it's own thing&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;If you wish to prevent resizing, why not use modal window?&lt;/LI&gt;
&lt;LI&gt;Is there a specific issue in using scheduler?&lt;/LI&gt;
&lt;LI&gt;That thread has the most probable answer: you might have to go outside the &lt;STRONG&gt;scripting&lt;/STRONG&gt; language and do it from the operating system&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:12:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801341#M97694</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-23T14:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing New Window from being maximized/resized?</title>
      <link>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801345#M97695</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;One window in JMP which prevents you from maximizing it and it is Legend window but you can still resize it so maybe there is a way to disable maximizing - &lt;STRONG&gt;I have never came across this, can you share an example code?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;If you wish to prevent resizing, why not use a modal window? - &lt;STRONG&gt;Bcos Modal window prevents accessing other files/tables&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Is there a specific issue in using scheduler? &lt;STRONG&gt;The issue is it slows down the loop&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 23 Sep 2024 15:24:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801345#M97695</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2024-09-23T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing New Window from being maximized/resized?</title>
      <link>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801347#M97696</link>
      <description>&lt;P&gt;No idea how that could be done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you wish to provide very annoying user experience you can use graphic scripts&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw = New Window("Example", &amp;lt;&amp;lt;size(200, 200),
	gb = Graph Box(
		Frame Size(1, 1)
	),
	box = V Splitter Box(
		Size(640, 480),
		H Splitter Box(
			Spacer Box(
				&amp;lt;&amp;lt;Set Fill(1);
				&amp;lt;&amp;lt;Color(RGB Color(9, 112, 84));
			),
			Spacer Box(
				&amp;lt;&amp;lt;Set Fill(1);
				&amp;lt;&amp;lt;Color(RGB Color(255, 222, 0));
			)
		),
		H Splitter Box(
			Spacer Box(
				&amp;lt;&amp;lt;Set Fill(1);
				&amp;lt;&amp;lt;Color(RGB Color(101, 153, 255));
			),
			Spacer Box(
				&amp;lt;&amp;lt;Set Fill(1);
				&amp;lt;&amp;lt;Color(RGB Color(255, 153, 0));
			)
		)
	)
);

(gb &amp;lt;&amp;lt; Xpath("//AxisBox")) &amp;lt;&amp;lt; visibility("Collapse");

Eval(EvalExpr(
	gb[FrameBox(1)] &amp;lt;&amp;lt; Add Graphics Script(
		Expr(nw) &amp;lt;&amp;lt; Zoom Window;
	);	
));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 16:21:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801347#M97696</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-23T16:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing New Window from being maximized/resized?</title>
      <link>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801350#M97697</link>
      <description>&lt;P&gt;This is a nice hack. Thanks Jarmo&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 17:19:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Preventing-New-Window-from-being-maximized-resized/m-p/801350#M97697</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2024-09-23T17:19:54Z</dc:date>
    </item>
  </channel>
</rss>

