<?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: ListBox size in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/39564#M23132</link>
    <description>got it</description>
    <pubDate>Wed, 24 May 2017 00:24:52 GMT</pubDate>
    <dc:creator>ram_asra_gmail_</dc:creator>
    <dc:date>2017-05-24T00:24:52Z</dc:date>
    <item>
      <title>ListBox size</title>
      <link>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/34764#M20530</link>
      <description>&lt;P&gt;Is there a way to retrieve the set the&amp;nbsp;size of a TableBox? There is a message for GETTING the size but it doesn't appear there's a way to SET size. Maybe I'm missing something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The display box 'TableBox' does not recognize the message 'set size'; perhaps you mean one of these: &amp;nbsp;&amp;lt;&amp;lt;Get Size &amp;lt;&amp;lt;Set Window Size &amp;lt;&amp;lt;Get Window Size &amp;lt;&amp;lt;User Resizable &amp;lt;&amp;lt;Reset Style &amp;lt;&amp;lt;Set Shade Cells &amp;lt;&amp;lt;Set Shade Headings &amp;lt;&amp;lt;Set Scrollable &amp;lt;&amp;lt;Set Selectable Rows &amp;lt;&amp;lt;Set Selected Rows &amp;lt;&amp;lt;Get As Matrix &amp;lt;&amp;lt;Set Click Sort &amp;lt;&amp;lt;Paste &amp;lt;&amp;lt;Select &amp;lt;&amp;lt;Inval Size &amp;lt;&amp;lt;Selectable &amp;lt;&amp;lt;Set Report Title &amp;lt;&amp;lt;Set Window Title &amp;lt;&amp;lt;Delete &amp;lt;&amp;lt;Show Properties &amp;lt;&amp;lt;Restore Window Size &amp;lt;&amp;lt;Get Text &amp;lt;&amp;lt;Get Script &amp;lt;&amp;lt;Get Picture &amp;lt;&amp;lt;Save Text &amp;lt;&amp;lt;Save RTF &amp;lt;&amp;lt;Save Picture &amp;lt;&amp;lt;Save Capture &amp;lt;&amp;lt;Set Window ID &amp;lt;&amp;lt;Get Content Size &amp;lt;&amp;lt;Set Content Size &amp;lt;&amp;lt;Size Window &amp;lt;&amp;lt;Set Window Title &amp;lt;&amp;lt;Set Print Headers &amp;lt;&amp;lt;Set Print Footers &amp;lt;&amp;lt;Set Page Setup &amp;lt;&amp;lt;Get Page Setup &amp;lt;&amp;lt;GetOffset &amp;lt;&amp;lt;SetNotStretchable &amp;lt;&amp;lt;Get Min Size &amp;lt;&amp;lt;Set Min Size &amp;lt;&amp;lt;Get Max Size &amp;lt;&amp;lt;Set Max Size &amp;lt;&amp;lt;Set Auto Stretching &amp;lt;&amp;lt;Get Row States &amp;lt;&amp;lt;Set Width &amp;lt;&amp;lt;Set Height &amp;lt;&amp;lt;Set Property &amp;lt;&amp;lt;Set Property.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 00:47:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/34764#M20530</guid>
      <dc:creator>Phil_Brown</dc:creator>
      <dc:date>2017-01-20T00:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: ListBox size</title>
      <link>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/34765#M20531</link>
      <description />
      <pubDate>Fri, 20 Jan 2017 00:46:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/34765#M20531</guid>
      <dc:creator>Phil_Brown</dc:creator>
      <dc:date>2017-01-20T00:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: ListBox size</title>
      <link>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/34866#M20600</link>
      <description>&lt;P&gt;There is no Set Size message for a Table Box. However, you can set the size for the columns within the Table Box.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example below, I create a Table Box that contains two String Col Boxes. The sizes of the Table Box and String Col Boxes are shown before and after changing the size of the columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "test",
	tb = Table Box(
		scb1 = String Col Box( "a", {"x", "y", "z"} ),
		scb2 = String Col Box( "b", {"1", "2", "3"} )
	)
);
Write( "before:" );
Show( tb &amp;lt;&amp;lt; Get Size(), scb1 &amp;lt;&amp;lt; Get Size(), scb2 &amp;lt;&amp;lt; Get Size() );

scb1 &amp;lt;&amp;lt; Set Width( 300 );
scb2 &amp;lt;&amp;lt; Set Width( 400 );

Wait( 0 ); // Wait for display to update so that get size returns latest size

Write( "\!N\!Nafter:" );
Show( tb &amp;lt;&amp;lt; Get Size(), scb1 &amp;lt;&amp;lt; Get Size(), scb2 &amp;lt;&amp;lt; Get Size() );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Below is the resulting log. Notice how the size of the Table Box is a few pixels larger than the sum of the sizes of the columns it contains.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/*:
before:
tb &amp;lt;&amp;lt; Get Size() = {39, 74};
scb1 &amp;lt;&amp;lt; Get Size() = {18, 72};
scb2 &amp;lt;&amp;lt; Get Size() = {20, 72};

after:
tb &amp;lt;&amp;lt; Get Size() = {701, 74};
scb1 &amp;lt;&amp;lt; Get Size() = {300, 72};
scb2 &amp;lt;&amp;lt; Get Size() = {400, 72};&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 16:48:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/34866#M20600</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2017-01-23T16:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: ListBox size</title>
      <link>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/39563#M23131</link>
      <description>&lt;P&gt;How to change width of lost box?&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 00:23:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/39563#M23131</guid>
      <dc:creator>ram_asra_gmail_</dc:creator>
      <dc:date>2017-05-24T00:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: ListBox size</title>
      <link>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/39564#M23132</link>
      <description>got it</description>
      <pubDate>Wed, 24 May 2017 00:24:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/ListBox-size/m-p/39564#M23132</guid>
      <dc:creator>ram_asra_gmail_</dc:creator>
      <dc:date>2017-05-24T00:24:52Z</dc:date>
    </item>
  </channel>
</rss>

