<?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: Window/text box size in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/238904#M47206</link>
    <description>&lt;P&gt;Try this 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 );

defdosingday = Today();

New Window( "Input dosing date and time",
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;Return Result,
	V List Box(
		Text Box( "Date &amp;amp; time" ),
		str1 = Number Edit Box( defdosingday, 10, &amp;lt;&amp;lt; Set Format( Format( "ddMonyyyy h:m" ) ) )
	),
	H List Box( Button Box( "OK" ), Button Box( "Cancel" ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Dec 2019 13:58:23 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2019-12-18T13:58:23Z</dc:date>
    <item>
      <title>Window/text box size</title>
      <link>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/238898#M47205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A very simple question that is still causing me some trouble. How do I change the size of the window so that it displays the full text (Input dosing date and time) when running the below script?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;defdosingday = Today();

New Window( "Input dosing date and time",
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;return result,
	V List Box(
		Text Box( "Date &amp;amp; time" ),
		str1 = Number Edit Box( defdosingday, 10, &amp;lt;&amp;lt;SetFunction( Function( {that}, dosingday = str1 &amp;lt;&amp;lt; get ) ) ), 

		str1 &amp;lt;&amp;lt; set format( Format( "ddMonyyyy h:m" ) ),

	),
	H List Box( Button Box( "OK" ), Button Box( "Cancel" ) ), 
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I´ve tried different approaches but nothing works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br Julie&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 17:43:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/238898#M47205</guid>
      <dc:creator>JulieSAppel</dc:creator>
      <dc:date>2019-12-18T17:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Window/text box size</title>
      <link>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/238904#M47206</link>
      <description>&lt;P&gt;Try this 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 );

defdosingday = Today();

New Window( "Input dosing date and time",
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;Return Result,
	V List Box(
		Text Box( "Date &amp;amp; time" ),
		str1 = Number Edit Box( defdosingday, 10, &amp;lt;&amp;lt; Set Format( Format( "ddMonyyyy h:m" ) ) )
	),
	H List Box( Button Box( "OK" ), Button Box( "Cancel" ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Dec 2019 13:58:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/238904#M47206</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-12-18T13:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Window/text box size</title>
      <link>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/239114#M47256</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;but that unfortunately doesn´t change anything. The text "Input dosing date &amp;amp; time" is still cropped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shouldn´t the script contain some information on the intended size of the window or box?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 13:38:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/239114#M47256</guid>
      <dc:creator>JulieSAppel</dc:creator>
      <dc:date>2019-12-19T13:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Window/text box size</title>
      <link>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/239118#M47259</link>
      <description>&lt;P&gt;I added enough spaces at the end of the text in the text box to force the window wider and display the entire window title.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 14:07:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/239118#M47259</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-12-19T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Window/text box size</title>
      <link>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/239144#M47261</link>
      <description>&lt;P&gt;In your script, the "10" is a field width for the Number Edit Box that will determine its width.&amp;nbsp; However, the subsequent &amp;lt;&amp;lt;SetFormat call will reset the width, using a default width for the given format unless a specific width is given.&amp;nbsp; The default for the format that you have is 19 characters, so try something like this to make the box wider:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;		str1 &amp;lt;&amp;lt; set format( Format( "ddMonyyyy h:m", 22 ) ),
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 15:11:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Window-text-box-size/m-p/239144#M47261</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2019-12-19T15:11:11Z</dc:date>
    </item>
  </channel>
</rss>

