<?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 Resizing Panel Box in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/353897#M60351</link>
    <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm creating an add-in that generates a dashboard. The dashboard has a panel box with a list of options to chose from. The part of the code that specifies the panel box is shown below (I tried to make it as simple as possible by commenting lines irrelevant to the issue at hand). On running the code, the panel I get looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image.png" style="width: 279px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29825iEF21746E43D25F48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicrosoftTeams-image.png" alt="MicrosoftTeams-image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is excessively wide and I want to have control over its size, but I couldn't figure out how. I have tried "&amp;lt;&amp;lt; Set Size( width, height )" ‏‎and "&amp;lt;&amp;lt; Frame&amp;nbsp;Size( width, height )" and they didn't work, though I'm not sure if I used them correctly, or if they are the right messages to begin with. Could you please advise me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;Ahmed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win = Platform(
	dt,
	H List Box(
		Panel Box( "Select option:",
			plist = List Box(
				points,
				max selected( 1 ),
				chosen = plist &amp;lt;&amp;lt; get selected;
				if( chosen[1] != "",
					// Some simple code that runs if no option is selected.
				);
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:10:33 GMT</pubDate>
    <dc:creator>A_Zaid</dc:creator>
    <dc:date>2023-06-11T11:10:33Z</dc:date>
    <item>
      <title>Resizing Panel Box in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/353897#M60351</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm creating an add-in that generates a dashboard. The dashboard has a panel box with a list of options to chose from. The part of the code that specifies the panel box is shown below (I tried to make it as simple as possible by commenting lines irrelevant to the issue at hand). On running the code, the panel I get looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image.png" style="width: 279px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29825iEF21746E43D25F48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicrosoftTeams-image.png" alt="MicrosoftTeams-image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is excessively wide and I want to have control over its size, but I couldn't figure out how. I have tried "&amp;lt;&amp;lt; Set Size( width, height )" ‏‎and "&amp;lt;&amp;lt; Frame&amp;nbsp;Size( width, height )" and they didn't work, though I'm not sure if I used them correctly, or if they are the right messages to begin with. Could you please advise me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;Ahmed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win = Platform(
	dt,
	H List Box(
		Panel Box( "Select option:",
			plist = List Box(
				points,
				max selected( 1 ),
				chosen = plist &amp;lt;&amp;lt; get selected;
				if( chosen[1] != "",
					// Some simple code that runs if no option is selected.
				);
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:10:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/353897#M60351</guid>
      <dc:creator>A_Zaid</dc:creator>
      <dc:date>2023-06-11T11:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing Panel Box in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/353916#M60352</link>
      <description>&lt;P&gt;Resize content inside the panel box&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;plist &amp;lt;&amp;lt; Set Width(50)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Full example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Reliability/TurbineEngineDesign1.jmp");
win = new window("", Platform(
	dt,
	H List Box(
		Panel Box( "Select option:",
			plist = List Box(
				{"single", "double", "triple"},
				max selected( 1 ),
				chosen = plist &amp;lt;&amp;lt; get selected;
				if( chosen[1] != "",
					// Some simple code that runs if no option is selected.
				);
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
				// Some simple code that runs if option is selected.
			)
		)
	)
));
wait(2);
plist &amp;lt;&amp;lt; set width(50);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 11:55:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/353916#M60352</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-01-29T11:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing Panel Box in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/354950#M60482</link>
      <description>Thank you &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;!&lt;BR /&gt;&lt;BR /&gt;Just for the benefit of everyone else, the "plist &amp;lt;&amp;lt; set width( x );" only worked for me when I added it to the "Initialize()" section of the Application code.&lt;BR /&gt;&lt;BR /&gt;Though, as an extension to my initial question, if you look again at the picture of the "Select option:" box above, you'll notice that it is made up of an outer and an inner boxes. The solution you suggested controls the inner nicely, but only. While the outer one would stretch with the inner, it would not shrink with it past a certain point. I tried labelling "Panel Box();" and "H List Box();" to then apply "&amp;lt;&amp;lt; set width():" to them and to "win" in the same manner, but to no avail. Any suggestions would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;Ahmed</description>
      <pubDate>Tue, 02 Feb 2021 09:21:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/354950#M60482</guid>
      <dc:creator>A_Zaid</dc:creator>
      <dc:date>2021-02-02T09:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing Panel Box in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/354953#M60483</link>
      <description>&lt;P&gt;Spacer Boxes can do some pretty nice things. Check out link below (especially parts 10 and 11 with Spacer Boxes):&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="13 helpful (and lucky) JMP scripting tips" uid="30748" url="https://community.jmp.com/t5/JMP-Blog/13-helpful-and-lucky-JMP-scripting-tips/m-p/30748#U30748" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;Also check out this great Discovery Summit presentation from 2019&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discovery-Summit-Europe-2019/A-Structured-Approach-to-Programming-With-JSL-for-Building-Real/ta-p/110075" target="_blank" rel="noopener"&gt;A Structured Approach to Programming With JSL for Building Real World, Scalable Applications&lt;/A&gt;&amp;nbsp;.&amp;nbsp;Topic related to this starts at 22:00 minute mark but I suggest checking out the whole presentation.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:43:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/354953#M60483</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-02-02T12:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing Panel Box in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/355297#M60525</link>
      <description>I just realised that how much the outer box can shrink with the inner one is limited by the title ("Select option:"): the smaller the title the further it can shrink with the inner box. Needless to say then that removing the title all together resolves the issue.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help and for the useful links, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;!&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Feb 2021 10:49:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Resizing-Panel-Box-in-JSL/m-p/355297#M60525</guid>
      <dc:creator>A_Zaid</dc:creator>
      <dc:date>2021-02-03T10:49:49Z</dc:date>
    </item>
  </channel>
</rss>

