<?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: Scripting display box widths:  OutlineBox &amp;amp; GraphBox in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45489#M26007</link>
    <description>&lt;P&gt;Thanks everyone for your suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up changing the Bar chart widths (from 300 to 308).&lt;BR /&gt;The following structure&amp;nbsp;worked the best for me:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;VListBox(
  HListBox(
    OutlineBox( "X", TextBox("X",&amp;lt;&amp;lt;SetWidth(300)), ... ),
    GraphBuilder( Size(308,200), ... ), //Bar chart
    GraphBuilder( Size(308,200), ... )  //Bar chart
  ),
  HListBox(
    GraphBuilder( Size(308,200), ... ), //Bar chart
    OutlineBox( "X", TextBox("X",&amp;lt;&amp;lt;SetWidth(300)), ... ),
    OutlineBox( "X", TextBox("X",&amp;lt;&amp;lt;SetWidth(300)), ... )
  ),
  HListBox(
    OutlineBox( "X", TextBox("X",&amp;lt;&amp;lt;SetWidth(300)), ... ),
    GraphBuilder( Size(150,150), ... ), //Pie with legend
    OutlineBox( "X", TextBox("X",&amp;lt;&amp;lt;SetWidth(300)), ... )
  )
)&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2017 19:03:43 GMT</pubDate>
    <dc:creator>jb</dc:creator>
    <dc:date>2017-10-04T19:03:43Z</dc:date>
    <item>
      <title>Scripting display box widths:  OutlineBox &amp; GraphBox</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45393#M25945</link>
      <description>&lt;P&gt;I scripted a simple 2x2 scorecard (see attached JSL):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scorecard.png" style="width: 540px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7844i86ABDCE81614AA1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Scorecard.png" alt="Scorecard.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I saved the journal to PDF and printed it, the display boxes had different widths:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OutlineBox - 3"&lt;/LI&gt;&lt;LI&gt;GraphBox - 2.88"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is there a way to make the display boxes all the same width (e.g., 3") ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:24:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45393#M25945</guid>
      <dc:creator>jb</dc:creator>
      <dc:date>2023-06-09T23:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting display box widths:  OutlineBox &amp; GraphBox</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45403#M25951</link>
      <description>&lt;P&gt;You can use a LineupBox to organize DisplayBoxes in a grid where columns all have the same width. This would be instead of using V and H List Boxes as shown below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win = New Window( "Customer Service Scorecard",
	Text Box(
		"Customer Service Scorecard",
		&amp;lt;&amp;lt;setFontSize( 16 ),
		&amp;lt;&amp;lt;SetFontStyle( "Bold" ),
		&amp;lt;&amp;lt;setWrap( 800 ),
		&amp;lt;&amp;lt;SetWidth( 600 ),
		&amp;lt;&amp;lt;JustifyText( "center" )
	),
	Text Box( "September 2017", &amp;lt;&amp;lt;setFontSize( 14 ), &amp;lt;&amp;lt;SetFontStyle( "Bold" ), &amp;lt;&amp;lt;setWrap( 800 ), &amp;lt;&amp;lt;SetWidth( 600 ), &amp;lt;&amp;lt;JustifyText( "center" ) ),
	Text Box( " " ),
	Lineup Box( N Col( 2 ),
		Outline Box( "Customer Satisfaction",
			Text Box( " " ),
			Text Box( "97%", &amp;lt;&amp;lt;setFontSize( 40 ), &amp;lt;&amp;lt;SetFontStyle( "Bold" ), &amp;lt;&amp;lt;SetWidth( 300 ), &amp;lt;&amp;lt;JustifyText( "center" ) ),
			Text Box( "of customers are satisfied", &amp;lt;&amp;lt;setFontSize( 9 ), &amp;lt;&amp;lt;SetWidth( 300 ), &amp;lt;&amp;lt;JustifyText( "center" ) )
		),
		dt1 &amp;lt;&amp;lt; GraphBuilder(
			Size( 300, 200 ),
			ShowControlPanel( 0 ),
			ShowLegend( 0 ),
			Variables( X( :Channel ), Y( :Pct of Customers ) ),
			Elements( Bar( X, Y, Legend( 6 ) ) ),
			SendToReport(
				Dispatch( {}, "Graph Builder", OutlineBox, {Set Title( "Preferred Channels" )} ),
				Dispatch( {}, "Channel", ScaleBox, {Labe Row( LabelOrientation( "Angled" ) )} ),
				Dispatch( {}, "graph title", TextEditBox, {SetText( "" )} ),
				Dispatch( {}, "400", LegendBox, {SetTitle( "" )} )
			)
		),
		Outline Box( "Customer Compliments",
			Text Box( " " ),
			Text Box( "8", &amp;lt;&amp;lt;setFontSize( 40 ), &amp;lt;&amp;lt;SetFontStyle( "Bold" ), &amp;lt;&amp;lt;SetWidth( 300 ), &amp;lt;&amp;lt;JustifyText( "center" ) )
		),
		Outline Box( "Winning Interactions", Text Box( " ", &amp;lt;&amp;lt;SetWidth( 300 ) ), Data Table Box( dt2 ) )
	)
  
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2017 16:55:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45403#M25951</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2017-10-03T16:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting display box widths:  OutlineBox &amp; GraphBox</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45433#M25967</link>
      <description>&lt;P&gt;LineupBox did work for my example of a 2x2 grid of 4 charts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I get weird results (vertically) when I use LineupBox for a&amp;nbsp;3x3 grid of assorted 9 charts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image2.png" style="width: 772px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7862iD63E547B9C1C8F35/image-size/large?v=v2&amp;amp;px=999" role="button" title="image2.png" alt="image2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions for the attached code (Scorecard2.jsl) ?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 19:46:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45433#M25967</guid>
      <dc:creator>jb</dc:creator>
      <dc:date>2017-10-03T19:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting display box widths:  OutlineBox &amp; GraphBox</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45444#M25972</link>
      <description>&lt;P&gt;I suspect that JMP is centering each object vertically on the page, hence the apparent misalignment.&amp;nbsp; I don't know if there's a way to set the object to appear at the top of it's grid.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 20:28:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45444#M25972</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-10-03T20:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting display box widths:  OutlineBox &amp; GraphBox</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45449#M25976</link>
      <description>&lt;P&gt;if you put each of those outline boxes in a Vlistbox() with a spacerbox() underneath it.&amp;nbsp; It will line up.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10-3-2017 12-58-24 PM.png" style="width: 954px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7868i56C2BFA179F84BD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="10-3-2017 12-58-24 PM.png" alt="10-3-2017 12-58-24 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 21:02:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45449#M25976</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2017-10-03T21:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting display box widths:  OutlineBox &amp; GraphBox</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45471#M25992</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2610"&gt;@vince_faller&lt;/a&gt;, I&amp;nbsp;was thinking of same thing yesterday with using the SpacerBox() to force the DisplayBoxes to be top aligned.&lt;/P&gt;
&lt;P&gt;The one improvement I might suggest is to use a LineupBox of 1 column instead of a V List Box so that the width of the items are inherited. See attached.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 966px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7873iADF467BE58FBA63D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 13:12:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45471#M25992</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2017-10-04T13:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting display box widths:  OutlineBox &amp; GraphBox</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45475#M25995</link>
      <description>&lt;P&gt;Perhaps I missed something, but maybe you can make rows with 'HListBox()', then use the 'Vertical Alignment&lt;SPAN&gt;(center)' message?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 13:29:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45475#M25995</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-10-04T13:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting display box widths:  OutlineBox &amp; GraphBox</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45476#M25996</link>
      <description>&lt;P&gt;Sorry. Please disregard the post above. Now I see the columns don't line up . . .&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 13:32:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45476#M25996</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-10-04T13:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting display box widths:  OutlineBox &amp; GraphBox</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45482#M26000</link>
      <description>Didn't realize it inherited.  Awesome.</description>
      <pubDate>Wed, 04 Oct 2017 15:34:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45482#M26000</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2017-10-04T15:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting display box widths:  OutlineBox &amp; GraphBox</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45489#M26007</link>
      <description>&lt;P&gt;Thanks everyone for your suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up changing the Bar chart widths (from 300 to 308).&lt;BR /&gt;The following structure&amp;nbsp;worked the best for me:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;VListBox(
  HListBox(
    OutlineBox( "X", TextBox("X",&amp;lt;&amp;lt;SetWidth(300)), ... ),
    GraphBuilder( Size(308,200), ... ), //Bar chart
    GraphBuilder( Size(308,200), ... )  //Bar chart
  ),
  HListBox(
    GraphBuilder( Size(308,200), ... ), //Bar chart
    OutlineBox( "X", TextBox("X",&amp;lt;&amp;lt;SetWidth(300)), ... ),
    OutlineBox( "X", TextBox("X",&amp;lt;&amp;lt;SetWidth(300)), ... )
  ),
  HListBox(
    OutlineBox( "X", TextBox("X",&amp;lt;&amp;lt;SetWidth(300)), ... ),
    GraphBuilder( Size(150,150), ... ), //Pie with legend
    OutlineBox( "X", TextBox("X",&amp;lt;&amp;lt;SetWidth(300)), ... )
  )
)&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:03:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-display-box-widths-OutlineBox-amp-GraphBox/m-p/45489#M26007</guid>
      <dc:creator>jb</dc:creator>
      <dc:date>2017-10-04T19:03:43Z</dc:date>
    </item>
  </channel>
</rss>

