<?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 define size/length of the List Box? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-define-size-length-of-the-List-Box/m-p/263731#M51486</link>
    <description>&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;I have this simple List Box. After starting the script the size/length of the List Box depends on number of items to be displayed. Since I want to use the available space in my GUI, it would be good to define the size of the List box and make it longer. I know I can do that by mouse, but I would like to define it in script. Is there any way to do that? I would appreciate for hints how to do that. Thank you and best regards.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;parameter_list = {"parameter_1", 
				"parameter_2", 
				"parameter_3", 
				"parameter_4" 								  
				};
				
New Window("Example",            
	H List Box(
		Panel Box("Parameters",
			params = List Box( 
				parameter_list, 
				max selected( 1 ), 
				selected = (params &amp;lt;&amp;lt; get selected indices)[1];
			),
		), 
	),   	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 02 May 2020 18:03:03 GMT</pubDate>
    <dc:creator>lukasz</dc:creator>
    <dc:date>2020-05-02T18:03:03Z</dc:date>
    <item>
      <title>How to define size/length of the List Box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-define-size-length-of-the-List-Box/m-p/263731#M51486</link>
      <description>&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;I have this simple List Box. After starting the script the size/length of the List Box depends on number of items to be displayed. Since I want to use the available space in my GUI, it would be good to define the size of the List box and make it longer. I know I can do that by mouse, but I would like to define it in script. Is there any way to do that? I would appreciate for hints how to do that. Thank you and best regards.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;parameter_list = {"parameter_1", 
				"parameter_2", 
				"parameter_3", 
				"parameter_4" 								  
				};
				
New Window("Example",            
	H List Box(
		Panel Box("Parameters",
			params = List Box( 
				parameter_list, 
				max selected( 1 ), 
				selected = (params &amp;lt;&amp;lt; get selected indices)[1];
			),
		), 
	),   	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 May 2020 18:03:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-define-size-length-of-the-List-Box/m-p/263731#M51486</guid>
      <dc:creator>lukasz</dc:creator>
      <dc:date>2020-05-02T18:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to define size/length of the List Box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-define-size-length-of-the-List-Box/m-p/263774#M51493</link>
      <description>&lt;P&gt;Ok, I got it. The only thing was to add the command nlines() defining numbers of lines to be displayed.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window("Example",            
	H List Box(
		Panel Box("Parameters",
			params = List Box( 				 
				parameters_list,
				nlines(10),
				max selected( 1 ), 
				selected = (params &amp;lt;&amp;lt; get selected indices)[1];							
			),
		), 
	),  	
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 11:35:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-define-size-length-of-the-List-Box/m-p/263774#M51493</guid>
      <dc:creator>lukasz</dc:creator>
      <dc:date>2020-05-03T11:35:40Z</dc:date>
    </item>
  </channel>
</rss>

