<?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 How to use scrollBox in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-scrollBox/m-p/79025#M36660</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I put a few strings in a scroll box in view of selecting one and using it later in the script...But I see no way to get the string that is selected by the user.&lt;/P&gt;&lt;P&gt;Example: in the following script we get a list of strings "first Item", "Second Item", ...&lt;/P&gt;&lt;P&gt;Once the user selects the "Second Item", how can I extract this information ?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
win = New Window( "Example",
	sb = Scroll Box(
		Size( 250, 75 ),
		List Box(
			{"First Item", "Second Item", "Third Item", "Fourth Item",
			"Fifth Item"},
			width( 200 ),
			max selected( 2 ),
			nlines( 6 )
		)
	)
);
win &amp;lt;&amp;lt; Set Window Size( 300, 200 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Oct 2018 15:20:36 GMT</pubDate>
    <dc:creator>samir</dc:creator>
    <dc:date>2018-10-16T15:20:36Z</dc:date>
    <item>
      <title>How to use scrollBox</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-scrollBox/m-p/79025#M36660</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I put a few strings in a scroll box in view of selecting one and using it later in the script...But I see no way to get the string that is selected by the user.&lt;/P&gt;&lt;P&gt;Example: in the following script we get a list of strings "first Item", "Second Item", ...&lt;/P&gt;&lt;P&gt;Once the user selects the "Second Item", how can I extract this information ?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
win = New Window( "Example",
	sb = Scroll Box(
		Size( 250, 75 ),
		List Box(
			{"First Item", "Second Item", "Third Item", "Fourth Item",
			"Fifth Item"},
			width( 200 ),
			max selected( 2 ),
			nlines( 6 )
		)
	)
);
win &amp;lt;&amp;lt; Set Window Size( 300, 200 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Oct 2018 15:20:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-scrollBox/m-p/79025#M36660</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2018-10-16T15:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use scrollBox</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-scrollBox/m-p/79031#M36662</link>
      <description>&lt;P&gt;You need to add a pointer to the actual list box().&amp;nbsp; Then you can access the various items/features you want.&amp;nbsp; See my script below.&amp;nbsp; All of this is available in the scripting index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
win = New Window( "Example",
	sb = Scroll Box(
		Size( 250, 75 ),
		lb = List Box(
			{"First Item", "Second Item", "Third Item", "Fourth Item",
			"Fifth Item"},
			width( 200 ),
			max selected( 2 ),
			nlines( 6 ),
			show(lb&amp;lt;&amp;lt;get selected);
		)
	)
);
win &amp;lt;&amp;lt; Set Window Size( 300, 200 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Oct 2018 15:33:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-scrollBox/m-p/79031#M36662</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-16T15:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use scrollBox</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-scrollBox/m-p/79034#M36663</link>
      <description>&lt;P&gt;You are right,&lt;/P&gt;&lt;P&gt;I did not think of pointing to the list itself...And the "get selected" does the job.&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 15:50:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-scrollBox/m-p/79034#M36663</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2018-10-16T15:50:39Z</dc:date>
    </item>
  </channel>
</rss>

