<?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: Refreshing items in text edit box, text box, or list box (whichever is easiest) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Refreshing-items-in-text-edit-box-text-box-or-list-box-whichever/m-p/41982#M24491</link>
    <description>&lt;P&gt;You can highlight text boxes by changing their background color.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window("Test",
	tb1 = text box("Hello"),
	tb2 = text box("World")
);

tb1 &amp;lt;&amp;lt; Background Color( "Green" );
tb2 &amp;lt;&amp;lt; Background Color( "Light Yellow" );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The method is there for text edit boxes too but doesn't seem to have any effect.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 11:27:07 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2017-07-14T11:27:07Z</dc:date>
    <item>
      <title>Refreshing items in text edit box, text box, or list box (whichever is easiest)</title>
      <link>https://community.jmp.com/t5/Discussions/Refreshing-items-in-text-edit-box-text-box-or-list-box-whichever/m-p/41955#M24479</link>
      <description>&lt;P&gt;Ughh the last thing I get held up on is refreshing :\&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Okay. So I have the option of having a list box or text edit box (I hate text boxes since you can't hilight text in them) that by default contains only one line "Existing comments go here"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when a user presses a button below, a function is run that feeds back a list "All_Comments" = {"A", "B"};&lt;BR /&gt;I'd like to replace that "Existing comments go here" in the box I use with the items from my list. :)&lt;/img&gt; Unfortunately, nothing I am trying is working.&lt;BR /&gt;&lt;BR /&gt;I've tried refreshing, reshowing, appending... maybe I'm not going it right. Here is a simple example&amp;nbsp;I can learn from:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;disp = {"INSERT HERE"};&lt;/P&gt;&lt;P&gt;nw1 = New Window("NEW STUFF",&lt;BR /&gt;lb= List Box(disp)&lt;BR /&gt;&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;All_Comments={"SOAP","FOOD","PUPPIES"};&lt;BR /&gt;lb &amp;lt;&amp;lt; Append( List box(All_Comments));&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 22:12:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Refreshing-items-in-text-edit-box-text-box-or-list-box-whichever/m-p/41955#M24479</guid>
      <dc:creator>agonzales2021</dc:creator>
      <dc:date>2017-07-13T22:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing items in text edit box, text box, or list box (whichever is easiest)</title>
      <link>https://community.jmp.com/t5/Discussions/Refreshing-items-in-text-edit-box-text-box-or-list-box-whichever/m-p/41975#M24487</link>
      <description>&lt;P&gt;Is this it?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);
disp = {"INSERT HERE"};
nw1 = New Window( "NEW STUFF",
		lb = List Box( disp ),
		ButtonBox("Update List", updateScript);
		);
ShowProperties(lb);

updateScript =
Expr(
	All_Comments = {"SOAP", "FOOD", "PUPPIES"};
	lb &amp;lt;&amp;lt; removeAll;
	lb &amp;lt;&amp;lt; append(All_Comments)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Look in the log to see what other messages 'ListBox()' understands.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 08:51:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Refreshing-items-in-text-edit-box-text-box-or-list-box-whichever/m-p/41975#M24487</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-07-14T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing items in text edit box, text box, or list box (whichever is easiest)</title>
      <link>https://community.jmp.com/t5/Discussions/Refreshing-items-in-text-edit-box-text-box-or-list-box-whichever/m-p/41982#M24491</link>
      <description>&lt;P&gt;You can highlight text boxes by changing their background color.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window("Test",
	tb1 = text box("Hello"),
	tb2 = text box("World")
);

tb1 &amp;lt;&amp;lt; Background Color( "Green" );
tb2 &amp;lt;&amp;lt; Background Color( "Light Yellow" );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The method is there for text edit boxes too but doesn't seem to have any effect.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 11:27:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Refreshing-items-in-text-edit-box-text-box-or-list-box-whichever/m-p/41982#M24491</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-07-14T11:27:07Z</dc:date>
    </item>
  </channel>
</rss>

