<?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 color a GUI background and buttons in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47347#M27007</link>
    <description>&lt;P&gt;This might get you started:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

nw = NewWindow("W", 
		vlb = VListBox(
			bb = ButtonBox("Press Me"),
			sb = SpacerBox(Size(10, 100))
			);
		);

Wait(2);
vlb &amp;lt;&amp;lt; backgroundColor("Blue");
Wait(2);
bb &amp;lt;&amp;lt; backgroundColor("Red");
Wait(2);
bb &amp;lt;&amp;lt; setIcon("$SAMPLE_IMAGES/pi.gif");
bb &amp;lt;&amp;lt; setIconLocation("Left");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need to look in 'Help &amp;gt; Scripting Index' to see the different display boxes and the messages they respond to (but if you have written a GUI you will be somewhat familiar with this anyway). For images, search for 'PictureBox()'.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2017 09:02:53 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2017-11-17T09:02:53Z</dc:date>
    <item>
      <title>How to color a GUI background and buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47344#M27006</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to find a way to change the look of my GUI...I noticed the standard background color of GUIs in JMP is GREY which is quite monocromatic...&lt;/P&gt;&lt;P&gt;How can I change &amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The background color of the GUI&lt;/LI&gt;&lt;LI&gt;The background color of the buttons in the GUI&lt;/LI&gt;&lt;LI&gt;Insert a picture or logo in the GUI&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Curious to see how this can be done :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 05:09:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47344#M27006</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2017-11-17T05:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to color a GUI background and buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47347#M27007</link>
      <description>&lt;P&gt;This might get you started:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

nw = NewWindow("W", 
		vlb = VListBox(
			bb = ButtonBox("Press Me"),
			sb = SpacerBox(Size(10, 100))
			);
		);

Wait(2);
vlb &amp;lt;&amp;lt; backgroundColor("Blue");
Wait(2);
bb &amp;lt;&amp;lt; backgroundColor("Red");
Wait(2);
bb &amp;lt;&amp;lt; setIcon("$SAMPLE_IMAGES/pi.gif");
bb &amp;lt;&amp;lt; setIconLocation("Left");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need to look in 'Help &amp;gt; Scripting Index' to see the different display boxes and the messages they respond to (but if you have written a GUI you will be somewhat familiar with this anyway). For images, search for 'PictureBox()'.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 09:02:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47347#M27007</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-11-17T09:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to color a GUI background and buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47362#M27012</link>
      <description>&lt;P&gt;The &amp;lt;&amp;lt; Background Color() message does not have an effect on the button box.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 14:22:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47362#M27012</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-11-17T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to color a GUI background and buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47364#M27014</link>
      <description>&lt;P&gt;The only way that I see that you could color the background of a Button Box() is to create and image of the color background, and overlayed text, and then to specify it to the Button Box() as what to display.&amp;nbsp; Below is a script using a builtin Icon, but the Set Icon() message can also point to an imate&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Example", ex = Button Box( "" ) );
ex &amp;lt;&amp;lt; Set Icon( "Go" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:20:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47364#M27014</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-11-17T15:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to color a GUI background and buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47369#M27017</link>
      <description>&lt;P&gt;Try&amp;nbsp;different&amp;nbsp;settings in &lt;EM&gt;Preferences/Styles&lt;/EM&gt; to&amp;nbsp;globally add some color to the GUI.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:45:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47369#M27017</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2017-11-17T15:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to color a GUI background and buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47464#M27071</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605"&gt;@ian_jmp&lt;/a&gt;, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/182"&gt;@ms&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;So far I was not able to change the color of the:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Buttons background&lt;/LI&gt;&lt;LI&gt;GUI-window background&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I guess these options do not exist in JMP :(&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:08:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47464#M27071</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2017-11-21T15:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to color a GUI background and buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47467#M27073</link>
      <description>&lt;P&gt;Regarding the buttons, you can use Jim's approach:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Example", ex = Button Box( "", Beep() ) );
ex &amp;lt;&amp;lt; Set Icon( "$DESKTOP/Screen Shot 2017-11-21 at 15.27.12.png" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where I made the .png file by tacking a screenshot from a drawing package. This gives:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-11-21 at 15.29.25.png" style="width: 163px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8363i9903F7BA302F8DF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-11-21 at 15.29.25.png" alt="Screen Shot 2017-11-21 at 15.29.25.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:32:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47467#M27073</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-11-21T15:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to color a GUI background and buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47473#M27074</link>
      <description>&lt;P&gt;Strange,&lt;/P&gt;&lt;P&gt;What I get by running the code is (I also placed a .png picture where it should be):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 290px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8364iDB854DFCDB822A95/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using JMP11. Could this be the problem ?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 16:08:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-color-a-GUI-background-and-buttons/m-p/47473#M27074</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2017-11-21T16:08:02Z</dc:date>
    </item>
  </channel>
</rss>

