<?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: How to set a red background or red text on different lines within the List box? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895483#M105620</link>
    <description>&lt;P&gt;Scripting Index has an example&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1755680754832.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/80721iEE0706317F5A7804/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1755680754832.png" alt="jthi_0-1755680754832.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example",
	fontobj = lb = List Box(
		{{"First Item", "continuous"}, {"Second Item", "ordinal"},
		{"Third Item", "nominal"}},
		width(200),
		max selected(2),
		nlines(6)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As does Scripting Guide&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/construct-display-boxes-for-new-windows.shtml#" target="_blank" rel="noopener"&gt;Scripting Guide &amp;gt; Display Trees &amp;gt; Construct Custom Windows &amp;gt; Construct Display Boxes for New Windows&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1755680877388.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/80723iAF3175ABF305A10F/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_1-1755680877388.png" alt="jthi_1-1755680877388.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2025 09:08:09 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-08-20T09:08:09Z</dc:date>
    <item>
      <title>How to set a red background or red text on different lines within the List box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895467#M105617</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If using&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ListboxTemp&amp;lt;&amp;lt; background color("red");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;, only the entire List box can change color. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May I ask if it is possible to set a red background or red text on different lines within the List box? &lt;BR /&gt;As shown in the picture below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Different Colored background" style="width: 191px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/80718iA55D016596DC4F3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="PFdgS.png" alt="Different Colored background" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Different Colored background&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Different Colored text" style="width: 507px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/80719i94D54B4B9D20F5BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ovHeE.png" alt="Different Colored text" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Different Colored text&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 08:44:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895467#M105617</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-08-20T08:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a red background or red text on different lines within the List box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895478#M105618</link>
      <description>&lt;P&gt;I don't think you can manipulate single items in listbox outside of icons&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1755680261722.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/80720i2DF9F52F37F5DC5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1755680261722.png" alt="jthi_0-1755680261722.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 08:59:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895478#M105618</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-08-20T08:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a red background or red text on different lines within the List box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895479#M105619</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How should I add an icon?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 09:02:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895479#M105619</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-08-20T09:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a red background or red text on different lines within the List box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895483#M105620</link>
      <description>&lt;P&gt;Scripting Index has an example&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1755680754832.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/80721iEE0706317F5A7804/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1755680754832.png" alt="jthi_0-1755680754832.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example",
	fontobj = lb = List Box(
		{{"First Item", "continuous"}, {"Second Item", "ordinal"},
		{"Third Item", "nominal"}},
		width(200),
		max selected(2),
		nlines(6)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As does Scripting Guide&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/construct-display-boxes-for-new-windows.shtml#" target="_blank" rel="noopener"&gt;Scripting Guide &amp;gt; Display Trees &amp;gt; Construct Custom Windows &amp;gt; Construct Display Boxes for New Windows&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1755680877388.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/80723iAF3175ABF305A10F/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_1-1755680877388.png" alt="jthi_1-1755680877388.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 09:08:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895483#M105620</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-08-20T09:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a red background or red text on different lines within the List box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895484#M105621</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I thought it was enough to just provide the index to mark the icon, for example, marking the icon on the 1st and 3rd lines only.&lt;BR /&gt;I didn't expect that each item in the list would need an additional set of parentheses to mark the icon. &lt;BR /&gt;This way of marking is not very intuitive programmatically.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 09:19:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895484#M105621</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-08-20T09:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a red background or red text on different lines within the List box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895488#M105622</link>
      <description>&lt;P&gt;You are dealing with scripting language, it isn't always very intuitive. You can make wish list items and hope for possible improvements down the line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To my knowledge you cannot update item in List Box. You can only add and remove items. You could create your own helper function to utilize those capabilities to add icons to specific indices.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 09:28:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-red-background-or-red-text-on-different-lines/m-p/895488#M105622</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-08-20T09:28:23Z</dc:date>
    </item>
  </channel>
</rss>

