<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Transparent uipanels	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/transparent-uipanels/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/transparent-uipanels?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=transparent-uipanels</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Fri, 18 Sep 2020 16:10:40 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Matthias Brenneis		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-uipanels#comment-508901</link>

		<dc:creator><![CDATA[Matthias Brenneis]]></dc:creator>
		<pubDate>Fri, 18 Sep 2020 16:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4758#comment-508901</guid>

					<description><![CDATA[Hi,

thank you so much for the inspiring work and comments!

My issue is: As soon as the panel gets an axes, the panel is no longer transparent:

&lt;pre lang=&quot;Matlab&quot;&gt;
f = figure(&#039;Units&#039;,&#039;pixels&#039;,&#039;Position&#039;,[0 0 1000 800]);

p1 = uipanel(f,&#039;Units&#039;,&#039;pixels&#039;,&#039;Position&#039;,[0 0 500 500] , &#039;BorderType&#039;,&#039;none&#039;);
a = axes(p1,&#039;Units&#039;,&#039;pixels&#039;,&#039;Position&#039;,[0 0 400 200]);

p2 = uipanel(f,&#039;Units&#039;,&#039;pixels&#039;,&#039;Position&#039;,[200 0 500 500 ] , &#039;BorderType&#039;,&#039;none&#039;);
drawnow;

j = p2.JavaFrame;
jPanel = j.getPrintableComponent;
jPanel.setOpaque(false)
jPanel.getParent.setOpaque(false)
jPanel.getComponent(0).setOpaque(false)
jPanel.repaint
pause( 2 )

% till now panel2 is transparent and axes1 is fully visible...
a2 = axes(p2,&#039;Units&#039;,&#039;pixels&#039;,&#039;Position&#039;,[0 200 400 200]); % This line breaks panel 2 transparency somehow...
&lt;/pre&gt;

It would be so helpful to have invisible Panels with axes! Especially because of the fact, that axes can not overlay &quot;foreign&quot; panels...

Does anybody have a clue?]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>thank you so much for the inspiring work and comments!</p>
<p>My issue is: As soon as the panel gets an axes, the panel is no longer transparent:</p>
<pre lang="Matlab">
f = figure('Units','pixels','Position',[0 0 1000 800]);

p1 = uipanel(f,'Units','pixels','Position',[0 0 500 500] , 'BorderType','none');
a = axes(p1,'Units','pixels','Position',[0 0 400 200]);

p2 = uipanel(f,'Units','pixels','Position',[200 0 500 500 ] , 'BorderType','none');
drawnow;

j = p2.JavaFrame;
jPanel = j.getPrintableComponent;
jPanel.setOpaque(false)
jPanel.getParent.setOpaque(false)
jPanel.getComponent(0).setOpaque(false)
jPanel.repaint
pause( 2 )

% till now panel2 is transparent and axes1 is fully visible...
a2 = axes(p2,'Units','pixels','Position',[0 200 400 200]); % This line breaks panel 2 transparency somehow...
</pre>
<p>It would be so helpful to have invisible Panels with axes! Especially because of the fact, that axes can not overlay &#8220;foreign&#8221; panels&#8230;</p>
<p>Does anybody have a clue?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-uipanels#comment-508257</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 03 Mar 2020 09:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4758#comment-508257</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/transparent-uipanels#comment-508256&quot;&gt;Maurizio Giardina&lt;/a&gt;.

@Maurizio - instead of using the integrated Panel title, you can use a separate label control (&lt;code&gt;uicontrol(&#039;Style&#039;,&#039;text&#039;,...)&lt;/code&gt; or a &lt;code&gt;JLabel&lt;/code&gt;). Alternatively, you can customize the uipanel&#039;s title.
 * http://undocumentedmatlab.com/articles/customizing-matlab-uipanels
 * http://undocumentedmatlab.com/articles/panel-level-uicontrols]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-uipanels#comment-508256">Maurizio Giardina</a>.</p>
<p>@Maurizio &#8211; instead of using the integrated Panel title, you can use a separate label control (<code>uicontrol('Style','text',...)</code> or a <code>JLabel</code>). Alternatively, you can customize the uipanel&#8217;s title.<br />
 * <a href="http://undocumentedmatlab.com/articles/customizing-matlab-uipanels" rel="ugc">http://undocumentedmatlab.com/articles/customizing-matlab-uipanels</a><br />
 * <a href="http://undocumentedmatlab.com/articles/panel-level-uicontrols" rel="ugc">http://undocumentedmatlab.com/articles/panel-level-uicontrols</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Maurizio Giardina		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-uipanels#comment-508256</link>

		<dc:creator><![CDATA[Maurizio Giardina]]></dc:creator>
		<pubDate>Tue, 03 Mar 2020 08:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4758#comment-508256</guid>

					<description><![CDATA[Hi Yair,
make transparent panel background is what I need for my application, but I have a problem:the panels I use have also a title, and the background of the title is not transparent. The effect is not so good, but I don&#039;t know how can I do.
Any suggestions?
Is it possible apply a setOpaque method also to the title? 
Thank]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,<br />
make transparent panel background is what I need for my application, but I have a problem:the panels I use have also a title, and the background of the title is not transparent. The effect is not so good, but I don&#8217;t know how can I do.<br />
Any suggestions?<br />
Is it possible apply a setOpaque method also to the title?<br />
Thank</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tom Benson		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-uipanels#comment-456518</link>

		<dc:creator><![CDATA[Tom Benson]]></dc:creator>
		<pubDate>Wed, 26 Dec 2018 08:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4758#comment-456518</guid>

					<description><![CDATA[Hi Yair

Thanks for all your great workarounds. 

I tried your last suggestion and indeed the uipanel becomes invisible. However, if the panel has any children then this does not appear to work. Is this something you have observed? I have basically been stuck on R2014a for years now because I can&#039;t find a solution. 

My application uses uipanels as GIS layers so they need to be transparent. Of course I could try recoding to just use axes, but the panels allows simpler resizing and moving of the layers and the code is large so would require a lot of work.]]></description>
			<content:encoded><![CDATA[<p>Hi Yair</p>
<p>Thanks for all your great workarounds. </p>
<p>I tried your last suggestion and indeed the uipanel becomes invisible. However, if the panel has any children then this does not appear to work. Is this something you have observed? I have basically been stuck on R2014a for years now because I can&#8217;t find a solution. </p>
<p>My application uses uipanels as GIS layers so they need to be transparent. Of course I could try recoding to just use axes, but the panels allows simpler resizing and moving of the layers and the code is large so would require a lot of work.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-uipanels#comment-418409</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 10 Jan 2018 20:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4758#comment-418409</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/transparent-uipanels#comment-409200&quot;&gt;Martin Kabelka&lt;/a&gt;.

I just added an addendum to the main post that explains how to set the uipanel&#039;s background to transparent in HG2 (R2014b onward)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-uipanels#comment-409200">Martin Kabelka</a>.</p>
<p>I just added an addendum to the main post that explains how to set the uipanel&#8217;s background to transparent in HG2 (R2014b onward)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-uipanels#comment-409304</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 27 Jun 2017 16:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4758#comment-409304</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/transparent-uipanels#comment-409200&quot;&gt;Martin Kabelka&lt;/a&gt;.

@Martin - I am not aware of a solution to make uipanels transparent in 15b onward]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-uipanels#comment-409200">Martin Kabelka</a>.</p>
<p>@Martin &#8211; I am not aware of a solution to make uipanels transparent in 15b onward</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Martin Kabelka		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-uipanels#comment-409200</link>

		<dc:creator><![CDATA[Martin Kabelka]]></dc:creator>
		<pubDate>Mon, 26 Jun 2017 09:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4758#comment-409200</guid>

					<description><![CDATA[Hi Yair

Have you had any thoughts how to add a transparent uipanel to the GUI in recent Matlab versions (post 15a)?  I’m using GUILayout toolbox and so all my uicontrols and text labels are positioned on uipanels and I’d like to add a background image to the whole GUI.

Thanks to your other posts I can make various uicontrols and text labels transparent but the same trick doesn’t work with uipanels, so as soon as the uncontrol/label is positioned within a panel the transparency doesn’t work.

Any ideas?]]></description>
			<content:encoded><![CDATA[<p>Hi Yair</p>
<p>Have you had any thoughts how to add a transparent uipanel to the GUI in recent Matlab versions (post 15a)?  I’m using GUILayout toolbox and so all my uicontrols and text labels are positioned on uipanels and I’d like to add a background image to the whole GUI.</p>
<p>Thanks to your other posts I can make various uicontrols and text labels transparent but the same trick doesn’t work with uipanels, so as soon as the uncontrol/label is positioned within a panel the transparency doesn’t work.</p>
<p>Any ideas?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bruce		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-uipanels#comment-359074</link>

		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Fri, 16 Oct 2015 17:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4758#comment-359074</guid>

					<description><![CDATA[It seems in 15b things got really difficult.  I would like to very simply place a rectangular outline on the figure telling the user to &#039;look here&#039;, regardless of what is  under the box.  

This would be easy if panels could be transparent - but they can&#039;t anymore.  

Additionally Patrick&#039;s solution doesn&#039;t work any more because panels ALWAYS clip their contents so that I cannot hide the panel outside the figure and then offset a rectangle to be in the figure.  I have wanted panels to clip their controls for ages and now they overdo it. Careful what you wish for...

Any ideas how to simply overlay a rectangle on a figure regardless of what is underneath it?]]></description>
			<content:encoded><![CDATA[<p>It seems in 15b things got really difficult.  I would like to very simply place a rectangular outline on the figure telling the user to &#8216;look here&#8217;, regardless of what is  under the box.  </p>
<p>This would be easy if panels could be transparent &#8211; but they can&#8217;t anymore.  </p>
<p>Additionally Patrick&#8217;s solution doesn&#8217;t work any more because panels ALWAYS clip their contents so that I cannot hide the panel outside the figure and then offset a rectangle to be in the figure.  I have wanted panels to clip their controls for ages and now they overdo it. Careful what you wish for&#8230;</p>
<p>Any ideas how to simply overlay a rectangle on a figure regardless of what is underneath it?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-uipanels#comment-348663</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Thu, 30 Apr 2015 16:04:58 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4758#comment-348663</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/transparent-uipanels#comment-348635&quot;&gt;Chris&lt;/a&gt;.

I now have a solution for my specific problem:
I use for the axes and the buttons a parent panel and create the buttons after the creation of the axes.
If the mouse cursor is in a specific defined area, then the buttons&#039; visibility property is on, else off.
It seems to work for my problem.

Thanks a lot, nice website!

Best regards,
Chris]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-uipanels#comment-348635">Chris</a>.</p>
<p>I now have a solution for my specific problem:<br />
I use for the axes and the buttons a parent panel and create the buttons after the creation of the axes.<br />
If the mouse cursor is in a specific defined area, then the buttons&#8217; visibility property is on, else off.<br />
It seems to work for my problem.</p>
<p>Thanks a lot, nice website!</p>
<p>Best regards,<br />
Chris</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-uipanels#comment-348635</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Thu, 30 Apr 2015 00:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4758#comment-348635</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/transparent-uipanels#comment-348631&quot;&gt;Yair Altman&lt;/a&gt;.

@ Yair Altman:
Thank you for the hint. I think that I can&#039;t use Patrick&#039;s solution for my gui problem.
I need a specific position of the panel (with some buttons) on the plot, 
because if the mouse cursor of the user is on the panel area then the panel is shown.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-uipanels#comment-348631">Yair Altman</a>.</p>
<p>@ Yair Altman:<br />
Thank you for the hint. I think that I can&#8217;t use Patrick&#8217;s solution for my gui problem.<br />
I need a specific position of the panel (with some buttons) on the plot,<br />
because if the mouse cursor of the user is on the panel area then the panel is shown.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
