<?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 Caption Box - Text Wrap Possible? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Caption-Box-Text-Wrap-Possible/m-p/345531#M59603</link>
    <description>&lt;P&gt;Is there any way to control (expand) the Caption() box text wrap?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm guessing not from the Scripting Guide.&amp;nbsp; It would be a nice feature if ever possible.&amp;nbsp; It's kind of annoying to have a line wrap where you don't want it to wrap, and if set wrap() could ever be employed, then one could choose the line break where they wanted using a normal line break escape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks, DJ&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:02:19 GMT</pubDate>
    <dc:creator>djhanson</dc:creator>
    <dc:date>2023-06-09T22:02:19Z</dc:date>
    <item>
      <title>Caption Box - Text Wrap Possible?</title>
      <link>https://community.jmp.com/t5/Discussions/Caption-Box-Text-Wrap-Possible/m-p/345531#M59603</link>
      <description>&lt;P&gt;Is there any way to control (expand) the Caption() box text wrap?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm guessing not from the Scripting Guide.&amp;nbsp; It would be a nice feature if ever possible.&amp;nbsp; It's kind of annoying to have a line wrap where you don't want it to wrap, and if set wrap() could ever be employed, then one could choose the line break where they wanted using a normal line break escape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks, DJ&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:02:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Caption-Box-Text-Wrap-Possible/m-p/345531#M59603</guid>
      <dc:creator>djhanson</dc:creator>
      <dc:date>2023-06-09T22:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Caption Box - Text Wrap Possible?</title>
      <link>https://community.jmp.com/t5/Discussions/Caption-Box-Text-Wrap-Possible/m-p/345558#M59610</link>
      <description>&lt;P&gt;You can use the Carriage Return Line Feed escape sequence to wrap to the next line&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="explan.PNG" style="width: 192px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29192i497ABFCDE2792A67/image-size/large?v=v2&amp;amp;px=999" role="button" title="explan.PNG" alt="explan.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="explan.PNG" style="width: 0px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29191i7B176F966B159A09/image-size/small?v=v2&amp;amp;px=200" width="0" height="0" role="button" title="explan.PNG" alt="explan.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Caption(
	{100, 200},
	"explan\!nation",
	Font( "Arial Black" ),
	Font Size( 16 ),
	Text Color( "blue" ),
	Back Color( "yellow" ),
	Spoken( 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 22:12:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Caption-Box-Text-Wrap-Possible/m-p/345558#M59610</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-04T22:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Caption Box - Text Wrap Possible?</title>
      <link>https://community.jmp.com/t5/Discussions/Caption-Box-Text-Wrap-Possible/m-p/345560#M59611</link>
      <description>&lt;P&gt;Hi DJ!&amp;nbsp; I'm not sure, but is this what you are looking for?&amp;nbsp; It uses one of the escape sequences for quoted strings. (See the section&amp;nbsp; JSL Building Blocks &amp;gt; JSL Syntax Rules in the Scripting Guide.)&amp;nbsp; --Marie&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 );
Caption(
	{100, 200},
	"This is a \!Nvery \!Nvery \!Nlong sentence.",
	Font( "Arial Black" ),
	Font Size( 16 ),
	Spoken(0)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Jan 2021 22:20:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Caption-Box-Text-Wrap-Possible/m-p/345560#M59611</guid>
      <dc:creator>marie_gaudard</dc:creator>
      <dc:date>2021-01-04T22:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Caption Box - Text Wrap Possible?</title>
      <link>https://community.jmp.com/t5/Discussions/Caption-Box-Text-Wrap-Possible/m-p/345740#M59640</link>
      <description>&lt;P&gt;I don't think that's what &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5537"&gt;@djhanson&lt;/a&gt;&amp;nbsp;is looking for.&amp;nbsp; They want to control where the wrap occurs, rather than force the wrap with embedded CR/LFs.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;caption("The quick brown fox jumped over the lazy dog.  Hello world hello world");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;produces this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="caption1.png" style="width: 186px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29220i662EE0D1479FAA90/image-size/large?v=v2&amp;amp;px=999" role="button" title="caption1.png" alt="caption1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You could use a text box to control the wrap.&amp;nbsp; Not quite the same as caption() though.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window("Caption",
	tb = textbox("The quick brown fox jumped over the lazy dog.  Hello world hello world")
);
tb &amp;lt;&amp;lt; set wrap(500);
wait(4);
nw &amp;lt;&amp;lt; close window();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="caption2.png" style="width: 427px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29221iF2C846C41B193BBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="caption2.png" alt="caption2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 14:14:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Caption-Box-Text-Wrap-Possible/m-p/345740#M59640</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2021-01-05T14:14:39Z</dc:date>
    </item>
  </channel>
</rss>

