<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258073</link>
    <title>MATLAB Central Newsreader - How to change icon in a toolbar?</title>
    <description>Feed for thread: How to change icon in a toolbar?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 09 Aug 2009 02:20:19 -0400</pubDate>
      <title>How to change icon in a toolbar?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258073#671696</link>
      <author>damayi</author>
      <description>Dear all&lt;br&gt;
As you know, an icon can be choose or set in GUIDE, and it is a fixed&lt;br&gt;
icon. I want to change the icon when the GUI runs, how to change icon&lt;br&gt;
in a toolbar when it is running?&lt;br&gt;
&lt;br&gt;
Best Regard&lt;br&gt;
mayi&lt;br&gt;
2009-8-9</description>
    </item>
    <item>
      <pubDate>Sun, 09 Aug 2009 03:54:01 -0400</pubDate>
      <title>Re: How to change icon in a toolbar?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258073#671704</link>
      <author>Shanmugam Kannappan</author>
      <description>damayi &amp;lt;damayi@gmail.com&amp;gt; wrote in message &amp;lt;a3ccc1fb-30c1-490b-858a-9d25720fb115@u38g2000pro.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Dear all&lt;br&gt;
&amp;gt; As you know, an icon can be choose or set in GUIDE, and it is a fixed&lt;br&gt;
&amp;gt; icon. I want to change the icon when the GUI runs, how to change icon&lt;br&gt;
&amp;gt; in a toolbar when it is running?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Best Regard&lt;br&gt;
&amp;gt; mayi&lt;br&gt;
&amp;gt; 2009-8-9&lt;br&gt;
Hi!&lt;br&gt;
&lt;br&gt;
CData property is the one used to set the icon.&lt;br&gt;
ex:&lt;br&gt;
set(handles.pushbutton1,'CData',rand(16,16,3))% write this in pushbutton2 callback&lt;br&gt;
&lt;br&gt;
or&lt;br&gt;
If you have the image then use imread('ImageName') instead of rand...&lt;br&gt;
&lt;br&gt;
Shan.....</description>
    </item>
  </channel>
</rss>

