<?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: how to enlarge columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475749#M72027</link>
    <description>&lt;P&gt;When I paste the code, the width of the column&amp;nbsp;it has not grown&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 07:56:13 GMT</pubDate>
    <dc:creator>NetflixCrow956</dc:creator>
    <dc:date>2022-04-04T07:56:13Z</dc:date>
    <item>
      <title>how to enlarge columns</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475706#M72021</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NetflixCrow956_0-1649051771760.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41450iBF8D42BD77E999AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NetflixCrow956_0-1649051771760.png" alt="NetflixCrow956_0-1649051771760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hello everyone, I'd like to enlarge my column with script. How to do it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:55:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475706#M72021</guid>
      <dc:creator>NetflixCrow956</dc:creator>
      <dc:date>2023-06-09T16:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to enlarge columns</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475745#M72023</link>
      <description>&lt;P&gt;Here is the example taken from the Scripting Index for the Set Display Width message&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
w = :Height &amp;lt;&amp;lt; Get Display Width;
:Height &amp;lt;&amp;lt; Set Display Width( 2 * w );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Apr 2022 06:46:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475745#M72023</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-04-04T06:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to enlarge columns</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475749#M72027</link>
      <description>&lt;P&gt;When I paste the code, the width of the column&amp;nbsp;it has not grown&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 07:56:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475749#M72027</guid>
      <dc:creator>NetflixCrow956</dc:creator>
      <dc:date>2022-04-04T07:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to enlarge columns</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475750#M72028</link>
      <description>&lt;P&gt;It turns out that "w" is coming back as zero, so the calculation in the Set Displa Width is zero.&amp;nbsp; Try changing it to something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
w = :Height &amp;lt;&amp;lt; Get Display Width;
:Height &amp;lt;&amp;lt; Set Display Width( 4 * 90 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Apr 2022 08:37:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475750#M72028</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-04-04T08:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to enlarge columns</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475753#M72030</link>
      <description>&lt;P&gt;Here's a variation you might find useful&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
w = ((Text Box( dt:name[1], &amp;lt;&amp;lt;setbasefont( "datatable" ) ) &amp;lt;&amp;lt; getpicture) &amp;lt;&amp;lt; getsize)[1];
dt:name &amp;lt;&amp;lt; Set Display Width( 1.2 * w );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Read the w= line from the inside -&amp;gt; out like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;make a textbox with Katie and the data table font&lt;/LI&gt;
&lt;LI&gt;get a picture of the textbox&lt;/LI&gt;
&lt;LI&gt;get the size of the picture&lt;/LI&gt;
&lt;LI&gt;get the x dimension of the size&lt;/LI&gt;
&lt;LI&gt;use that for w, the width needed&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I chose Katie in line 1 to make this picture. I added 20% to avoid "Ka...".&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="At some font sizes, 10% might not be enough." style="width: 689px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41452i989C836DD567FEC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Katie.PNG" alt="At some font sizes, 10% might not be enough." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;At some font sizes, 10% might not be enough.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also, you can make a data table, change almost anything, and use the red triangle-&amp;gt;copyTableScript(NoData) option to see how JMP scripts the changes. Paste the copy into an editor to see it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 10:59:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-enlarge-columns/m-p/475753#M72030</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-04-04T10:59:27Z</dc:date>
    </item>
  </channel>
</rss>

