<?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: Custom Icons for Button Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Custom-Icons-for-Button-Box/m-p/47052#M26811</link>
    <description>&lt;P&gt;Change the semicolon to a comma for your button box definition::&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;bb = Button Box("New Project"),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This works in JMP 13:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a = new window("test",
	b = button box("Bar Chart"),
);

b &amp;lt;&amp;lt; set icon("C:\JMP\Icons\icon-48x48-chart_bar.png");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarchartButton.png" style="width: 137px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8288i28C59B4A773E746F/image-size/large?v=v2&amp;amp;px=999" role="button" title="BarchartButton.png" alt="BarchartButton.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2017 15:30:58 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2017-11-10T15:30:58Z</dc:date>
    <item>
      <title>Custom Icons for Button Box</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Icons-for-Button-Box/m-p/47043#M26806</link>
      <description>&lt;P&gt;Hey JMPers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again a little scripting problem: I would like to add a custom image to a ButtonBox. Sadly it does not work. My script looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window("My Window",
	V List Box(
		bb = Button Box("New Project");
	)
);

// bb &amp;lt;&amp;lt; Set Icon("JMP"); // This works!
bb &amp;lt;&amp;lt;Set Icon("../imgs/New Project Icon.png"); // =&amp;gt; Gives "Unknown" in the log!!!

New Image(Open("../imgs/New Project Icon.png")); // Opens the image. Path seems to work fine&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As you can see, JMP is able to find my image, as the last line of the script works without error. But the second to last line produces the message "Unknown" in the log and doe not add the Image to the Button.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any advice,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 14:05:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Icons-for-Button-Box/m-p/47043#M26806</guid>
      <dc:creator>shoffmeister</dc:creator>
      <dc:date>2017-11-10T14:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icons for Button Box</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Icons-for-Button-Box/m-p/47052#M26811</link>
      <description>&lt;P&gt;Change the semicolon to a comma for your button box definition::&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;bb = Button Box("New Project"),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This works in JMP 13:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a = new window("test",
	b = button box("Bar Chart"),
);

b &amp;lt;&amp;lt; set icon("C:\JMP\Icons\icon-48x48-chart_bar.png");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarchartButton.png" style="width: 137px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8288i28C59B4A773E746F/image-size/large?v=v2&amp;amp;px=999" role="button" title="BarchartButton.png" alt="BarchartButton.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 15:30:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Icons-for-Button-Box/m-p/47052#M26811</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-11-10T15:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icons for Button Box</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Icons-for-Button-Box/m-p/47054#M26813</link>
      <description>&lt;P&gt;Try using an absolute filepath instead of a relative filepath. A button has its own context and does not know anything about the script that created it.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 15:33:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Icons-for-Button-Box/m-p/47054#M26813</guid>
      <dc:creator>Melanie_J_Drake</dc:creator>
      <dc:date>2017-11-10T15:33:08Z</dc:date>
    </item>
  </channel>
</rss>

