<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154882</link>
    <title>MATLAB Central Newsreader - backgroundcolor of menubar and toolbar</title>
    <description>Feed for thread: backgroundcolor of menubar and 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>Tue, 21 Aug 2007 13:43:19 -0400</pubDate>
      <title>backgroundcolor of menubar and toolbar</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154882#388585</link>
      <author>Jette</author>
      <description>Hi, &lt;br&gt;
&lt;br&gt;
I wonder whether there is a way to change the &lt;br&gt;
backgroundcolor of a figure's menubar and toolbar? Both &lt;br&gt;
seem to depend on the user's Windows settings (classical &lt;br&gt;
style versus XP style) which I don't like. I would like to &lt;br&gt;
set it to the same color as the figure's color.&lt;br&gt;
&lt;br&gt;
Thanks for any hints.&lt;br&gt;
&lt;br&gt;
Jette  </description>
    </item>
    <item>
      <pubDate>Mon, 29 Oct 2007 01:38:39 -0400</pubDate>
      <title>Re: backgroundcolor of menubar and toolbar</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154882#398754</link>
      <author>Craig Hamilton</author>
      <description>&quot;Jette &quot; &amp;lt;jette.schroeder@web.de&amp;gt; wrote in message &lt;br&gt;
&amp;lt;faeq5n$agk$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi, &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I wonder whether there is a way to change the &lt;br&gt;
&amp;gt; backgroundcolor of a figure's menubar and toolbar? Both &lt;br&gt;
&amp;gt; seem to depend on the user's Windows settings (classical &lt;br&gt;
&amp;gt; style versus XP style) which I don't like. I would like &lt;br&gt;
to &lt;br&gt;
&amp;gt; set it to the same color as the figure's color.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for any hints.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Jette  &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
I would love to see an answer to this question....  &lt;br&gt;
anyone, anyone, Bueller???</description>
    </item>
    <item>
      <pubDate>Mon, 29 Oct 2007 10:11:45 -0400</pubDate>
      <title>Re: backgroundcolor of menubar and toolbar</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154882#398810</link>
      <author>Yair Altman</author>
      <description>&quot;Craig Hamilton&quot; &amp;lt;crhamilt.nospam@wfubmc.edu&amp;gt; wrote in&lt;br&gt;
message &amp;lt;fg3div$mqv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Jette &quot; &amp;lt;jette.schroeder@web.de&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;faeq5n$agk$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hi, &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I wonder whether there is a way to change the &lt;br&gt;
&amp;gt; &amp;gt; backgroundcolor of a figure's menubar and toolbar? Both &lt;br&gt;
&amp;gt; &amp;gt; seem to depend on the user's Windows settings (classical &lt;br&gt;
&amp;gt; &amp;gt; style versus XP style) which I don't like. I would like &lt;br&gt;
&amp;gt; to &lt;br&gt;
&amp;gt; &amp;gt; set it to the same color as the figure's color.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Thanks for any hints.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Jette  &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I would love to see an answer to this question....  &lt;br&gt;
&amp;gt; anyone, anyone, Bueller???&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Another one of those challenges that I simply cannot resist...&lt;br&gt;
&lt;br&gt;
The following is entirely unsupported, undocumented, but&lt;br&gt;
works on Matlab 7+:&lt;br&gt;
&lt;br&gt;
1. Download my FindJObj utility from the File Exchange:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=14317&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=14317&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
2. run the following:&lt;br&gt;
&lt;br&gt;
c = get(gcf,'color');&lt;br&gt;
&lt;br&gt;
% set the figure menu bg color&lt;br&gt;
hmb=findjobj(gcf,'class','FigureMenuBar');&lt;br&gt;
for idx=0:hmb.getComponentCount-1&lt;br&gt;
&amp;nbsp;&amp;nbsp;hm=hmb.getComponent(idx);&lt;br&gt;
&amp;nbsp;&amp;nbsp;hm.setBackground(java.awt.Color(c(1),c(2),c(3)));&lt;br&gt;
end&lt;br&gt;
for idx=0:hmb.getParent.getComponentCount-1&lt;br&gt;
&amp;nbsp;&amp;nbsp;hm=hmb.getParent.getComponent(idx);&lt;br&gt;
&amp;nbsp;&amp;nbsp;hm.setBackground(java.awt.Color(c(1),c(2),c(3)));&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
% set the figure toolbar bg color&lt;br&gt;
htb=findjobj(gcf,'class','MJToolbar');&lt;br&gt;
htb=findjobj(htb(1));  % get all decendents...&lt;br&gt;
set(htb,'background',java.awt.Color(c(1),c(2),c(3)));&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href=&quot;http://ymasoftware.com&quot;&gt;http://ymasoftware.com&lt;/a&gt;</description>
    </item>
  </channel>
</rss>

