<?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: ScriptBox scrolling in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/ScriptBox-scrolling/m-p/750449#M93132</link>
    <description>&lt;P&gt;For script box you can use Set Line to go to specific line&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

w = New Window("a", sb = Script Box());
maxcount = 100;

For(i = 1, i &amp;lt;= maxcount, i++,
	sb &amp;lt;&amp;lt; append text(Char(i) || "\!N");      // I would like to set a scroll to end here, so that the last written string is visible.
);

lines = sb &amp;lt;&amp;lt; get lines;

sb &amp;lt;&amp;lt; Set Line Text(N Items(lines), Char(lines[N Items(lines)]));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The scrollbox which wraps script box seems to be some sort of weird scrollbox (it is still scriptbox..)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw = New Window("a", sb = Script Box());
maxcount = 100;

For(i = 1, i &amp;lt; maxcount, i++,
	sb &amp;lt;&amp;lt; append text(Char(i) || "\!N");      // I would like to set a scroll to end here, so that the last written string is visible.
);

scroll = nw[ScrollBox(1)];
Show(scroll &amp;lt;&amp;lt; Class Name);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 28 Apr 2024 14:03:23 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-04-28T14:03:23Z</dc:date>
    <item>
      <title>ScriptBox scrolling</title>
      <link>https://community.jmp.com/t5/Discussions/ScriptBox-scrolling/m-p/750422#M93126</link>
      <description>&lt;P&gt;Hi, I would like to scroll the following script box to the end, so that the last string written is always visible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;w=new window("a", sb=script box());

for (i=1, i&amp;lt;=100, i++,
		sb&amp;lt;&amp;lt;append text(char(i) || "\!N");&lt;BR /&gt;      // I would like to set a scroll to end here, so that the last written string is visible.&lt;BR /&gt;);&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;By instpect the the display box tree, I see that a "scroll box" is automatically created around the script box, but I have not found a way to access it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 10:36:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/ScriptBox-scrolling/m-p/750422#M93126</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2024-04-28T10:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptBox scrolling</title>
      <link>https://community.jmp.com/t5/Discussions/ScriptBox-scrolling/m-p/750449#M93132</link>
      <description>&lt;P&gt;For script box you can use Set Line to go to specific line&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

w = New Window("a", sb = Script Box());
maxcount = 100;

For(i = 1, i &amp;lt;= maxcount, i++,
	sb &amp;lt;&amp;lt; append text(Char(i) || "\!N");      // I would like to set a scroll to end here, so that the last written string is visible.
);

lines = sb &amp;lt;&amp;lt; get lines;

sb &amp;lt;&amp;lt; Set Line Text(N Items(lines), Char(lines[N Items(lines)]));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The scrollbox which wraps script box seems to be some sort of weird scrollbox (it is still scriptbox..)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw = New Window("a", sb = Script Box());
maxcount = 100;

For(i = 1, i &amp;lt; maxcount, i++,
	sb &amp;lt;&amp;lt; append text(Char(i) || "\!N");      // I would like to set a scroll to end here, so that the last written string is visible.
);

scroll = nw[ScrollBox(1)];
Show(scroll &amp;lt;&amp;lt; Class Name);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Apr 2024 14:03:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/ScriptBox-scrolling/m-p/750449#M93132</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-28T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptBox scrolling</title>
      <link>https://community.jmp.com/t5/Discussions/ScriptBox-scrolling/m-p/750451#M93134</link>
      <description>&lt;P&gt;Thanks, it works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 15:52:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/ScriptBox-scrolling/m-p/750451#M93134</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2024-04-28T15:52:55Z</dc:date>
    </item>
  </channel>
</rss>

