<?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: Frameless (undecorated) figure windows	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=frameless-undecorated-figure-windows</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Tue, 10 Sep 2019 10:23:55 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-496694</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 10 Sep 2019 10:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5642#comment-496694</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-496693&quot;&gt;Jan Kl&lt;/a&gt;.

@Jan - undecorate only works with legacy (Java-based) figures, not the new App-designer-created uifigures (which use a completely different technology).]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-496693">Jan Kl</a>.</p>
<p>@Jan &#8211; undecorate only works with legacy (Java-based) figures, not the new App-designer-created uifigures (which use a completely different technology).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jan Kl		</title>
		<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-496693</link>

		<dc:creator><![CDATA[Jan Kl]]></dc:creator>
		<pubDate>Tue, 10 Sep 2019 10:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5642#comment-496693</guid>

					<description><![CDATA[Hello Yair,
not sure if you&#039;re still reading comments here but I will give it a shot. I love the functions you provided on the File Exchange. However, when trying to undecorate a GUI created with the App Designer I ran into some problems.

My idea was to include the undecorate.m file in the start up function but it produces the following error:


Cannot undecorate a docked figure.


Note that I am not too familiar with handling MATLAB figures so this might be easy to fix but I just don&#039;t know how. 

Regards, Jan]]></description>
			<content:encoded><![CDATA[<p>Hello Yair,<br />
not sure if you&#8217;re still reading comments here but I will give it a shot. I love the functions you provided on the File Exchange. However, when trying to undecorate a GUI created with the App Designer I ran into some problems.</p>
<p>My idea was to include the undecorate.m file in the start up function but it produces the following error:</p>
<p>Cannot undecorate a docked figure.</p>
<p>Note that I am not too familiar with handling MATLAB figures so this might be easy to fix but I just don&#8217;t know how. </p>
<p>Regards, Jan</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-358317</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 05 Oct 2015 16:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5642#comment-358317</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-358254&quot;&gt;David M&lt;/a&gt;.

@David - you will need to do this programmatically: this is typically handled by the window frame but without the frame it doesn&#039;t happen automatically. So trap a mouse click event and then move the figure as per subsequent mouse-movement events.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-358254">David M</a>.</p>
<p>@David &#8211; you will need to do this programmatically: this is typically handled by the window frame but without the frame it doesn&#8217;t happen automatically. So trap a mouse click event and then move the figure as per subsequent mouse-movement events.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David M		</title>
		<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-358254</link>

		<dc:creator><![CDATA[David M]]></dc:creator>
		<pubDate>Sun, 04 Oct 2015 19:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5642#comment-358254</guid>

					<description><![CDATA[Hello Yair,

Is it possible to grab and drag a &#039;frameless&#039; figure without the title bar? I would like to click somewhere in the frameless figure area, and drag it around.

Kind regards]]></description>
			<content:encoded><![CDATA[<p>Hello Yair,</p>
<p>Is it possible to grab and drag a &#8216;frameless&#8217; figure without the title bar? I would like to click somewhere in the frameless figure area, and drag it around.</p>
<p>Kind regards</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Iliya		</title>
		<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-352631</link>

		<dc:creator><![CDATA[Iliya]]></dc:creator>
		<pubDate>Tue, 07 Jul 2015 22:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5642#comment-352631</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-352629&quot;&gt;Iliya&lt;/a&gt;.

I remembered that this issue &lt;a href=&quot;http://undocumentedmatlab.com/blog/minimize-maximize-figure-window&quot; rel=&quot;nofollow&quot;&gt;was discussed in your blog before&lt;/a&gt;. I must&#039;ve hidden the warning in the past...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-352629">Iliya</a>.</p>
<p>I remembered that this issue <a href="http://undocumentedmatlab.com/blog/minimize-maximize-figure-window" rel="nofollow">was discussed in your blog before</a>. I must&#8217;ve hidden the warning in the past&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Iliya		</title>
		<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-352629</link>

		<dc:creator><![CDATA[Iliya]]></dc:creator>
		<pubDate>Tue, 07 Jul 2015 22:16:09 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5642#comment-352629</guid>

					<description><![CDATA[Hello Yair,

I started seeing the following warning when trying to access the JavaFrame property:
&lt;pre&gt;Warning: figure JavaFrame property will be obsoleted in a future release. For more information see &lt;a href=&quot;http://www.mathworks.com/javaframe&quot; rel=&quot;nofollow&quot;&gt;the JavaFrame resource on the MathWorks web site&lt;/a&gt;.&lt;/pre&gt;
I might be mistaken here, but I don&#039;t think I saw this before R2015a. Should we be worried?

I mainly use it to maximize figures, as per your tip from long ago, and did not look into new methods since the introduction of HG2. Is there another way to maximize figures now without getting warnings?

Thanks!]]></description>
			<content:encoded><![CDATA[<p>Hello Yair,</p>
<p>I started seeing the following warning when trying to access the JavaFrame property:</p>
<pre>Warning: figure JavaFrame property will be obsoleted in a future release. For more information see <a href="http://www.mathworks.com/javaframe" rel="nofollow">the JavaFrame resource on the MathWorks web site</a>.</pre>
<p>I might be mistaken here, but I don&#8217;t think I saw this before R2015a. Should we be worried?</p>
<p>I mainly use it to maximize figures, as per your tip from long ago, and did not look into new methods since the introduction of HG2. Is there another way to maximize figures now without getting warnings?</p>
<p>Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bryan Moosman		</title>
		<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-352234</link>

		<dc:creator><![CDATA[Bryan Moosman]]></dc:creator>
		<pubDate>Wed, 01 Jul 2015 14:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5642#comment-352234</guid>

					<description><![CDATA[Hello Yair,

I&#039;ve tried both the code above and the functions you submitted.  I&#039;ve got 2 areas of feedback:

1.  The figure sizing isn&#039;t quite correct.  It was a bit large and I had to remove the &quot;+mjr.getY&quot; term to get it to fit properly.
2.  There are focus traversal problems with the current function.  When I use it, I&#039;m unable to input any text or use any of the UI elements inside as the focus keeps transferring elsewhere before any text can be input.

On a side note, I&#039;m using this to generate a popup menu inside of another GUI.  It works pretty well, and I don&#039;t think it would be too much work to clean it up.  I think it would do well as a MATLAB file submission if labeled as a &#039;popup&#039; menu template.

By the way, I&#039;m using 2014a.]]></description>
			<content:encoded><![CDATA[<p>Hello Yair,</p>
<p>I&#8217;ve tried both the code above and the functions you submitted.  I&#8217;ve got 2 areas of feedback:</p>
<p>1.  The figure sizing isn&#8217;t quite correct.  It was a bit large and I had to remove the &#8220;+mjr.getY&#8221; term to get it to fit properly.<br />
2.  There are focus traversal problems with the current function.  When I use it, I&#8217;m unable to input any text or use any of the UI elements inside as the focus keeps transferring elsewhere before any text can be input.</p>
<p>On a side note, I&#8217;m using this to generate a popup menu inside of another GUI.  It works pretty well, and I don&#8217;t think it would be too much work to clean it up.  I think it would do well as a MATLAB file submission if labeled as a &#8216;popup&#8217; menu template.</p>
<p>By the way, I&#8217;m using 2014a.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Cheung		</title>
		<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-350363</link>

		<dc:creator><![CDATA[Cheung]]></dc:creator>
		<pubDate>Mon, 01 Jun 2015 09:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5642#comment-350363</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-350353&quot;&gt;Cheung&lt;/a&gt;.

@Yair - Thank you for your speedy response. I have tired your suggestion, but it doesn&#039;t work,and remains the previous status, 20 pixels isn&#039;t increased, I don&#039;t why.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-350353">Cheung</a>.</p>
<p>@Yair &#8211; Thank you for your speedy response. I have tired your suggestion, but it doesn&#8217;t work,and remains the previous status, 20 pixels isn&#8217;t increased, I don&#8217;t why.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-350355</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 01 Jun 2015 06:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5642#comment-350355</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-350353&quot;&gt;Cheung&lt;/a&gt;.

@Cheung - you can increase the figure&#039;s height by 20 pixels to take into account the titlebar (i.e., screen(4)+20). 

As for your OK button, you should review how to specify &lt;a href=&quot;http://www.mathworks.com/help/matlab/creating_plots/callback-definition.html&quot; rel=&quot;nofollow&quot;&gt;Matlab callbacks&lt;/a&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-350353">Cheung</a>.</p>
<p>@Cheung &#8211; you can increase the figure&#8217;s height by 20 pixels to take into account the titlebar (i.e., screen(4)+20). </p>
<p>As for your OK button, you should review how to specify <a href="http://www.mathworks.com/help/matlab/creating_plots/callback-definition.html" rel="nofollow">Matlab callbacks</a>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Cheung		</title>
		<link>https://undocumentedmatlab.com/articles/frameless-undecorated-figure-windows#comment-350353</link>

		<dc:creator><![CDATA[Cheung]]></dc:creator>
		<pubDate>Mon, 01 Jun 2015 06:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5642#comment-350353</guid>

					<description><![CDATA[Now I meet a ticklish problem when I use your tool,&#039;undecorateFig&#039;. First I  would like to describe my purpose. When we run a GUI we write, a corresponding figure always appear. now I want to full screen the figure, not just maximizing the figure, simultaneously, the most important is that the titlebar of the figure and taskbar should all be hidden or removed. The &#039;undecorateFig&#039; tool can remove  titlebar and taskbar of the figure, but the figure is not a full-screen figure, the area corresponding to the previous titlebar isn&#039;t filled by the background of figure. I don&#039;t know how to deal with it. Could you help me? Thanks. For example, I have the following codes: 
&lt;pre lang=&#039;matlab&#039;&gt;
% the function can display two images. when the &#039;OK&#039; button is pressed, the second image would appear.  
function display_img 
   screen = get(0,&#039;ScreenSize&#039;);
   H1=figure(&#039;menubar&#039;,&#039;none&#039;);
   set(H1,&#039;Position&#039;,[0, 0, screen(3),screen(4)]);
   img1 = imread(&#039;peppers.png&#039;); 
   subplot(1,2,1);
   subimage(img1);
   axis off;
   H2 = uicontrol(&#039;Style&#039;,&#039;pushbutton&#039;,&#039;String&#039;,&#039;OK&#039;,&#039;Position&#039;,[200,100,100,40],&#039;Fontsize&#039;,12);
   set(H2,&#039;callback&#039;,&#039;my_callbacks&#039;);
   jFrame = undecorateFig(H1);

function my_callbacks
   img2 = imread(&#039;peppers.png&#039;); 
   subplot(1,2,2);
   subimage(img2);
   axis off;
&lt;/pre&gt;

However, after I use  &#039;undecorateFig&#039; tool, the &#039;OK&#039; button doesn&#039;t work .

Best regards!]]></description>
			<content:encoded><![CDATA[<p>Now I meet a ticklish problem when I use your tool,&#8217;undecorateFig&#8217;. First I  would like to describe my purpose. When we run a GUI we write, a corresponding figure always appear. now I want to full screen the figure, not just maximizing the figure, simultaneously, the most important is that the titlebar of the figure and taskbar should all be hidden or removed. The &#8216;undecorateFig&#8217; tool can remove  titlebar and taskbar of the figure, but the figure is not a full-screen figure, the area corresponding to the previous titlebar isn&#8217;t filled by the background of figure. I don&#8217;t know how to deal with it. Could you help me? Thanks. For example, I have the following codes: </p>
<pre lang='matlab'>
% the function can display two images. when the 'OK' button is pressed, the second image would appear.  
function display_img 
   screen = get(0,'ScreenSize');
   H1=figure('menubar','none');
   set(H1,'Position',[0, 0, screen(3),screen(4)]);
   img1 = imread('peppers.png'); 
   subplot(1,2,1);
   subimage(img1);
   axis off;
   H2 = uicontrol('Style','pushbutton','String','OK','Position',[200,100,100,40],'Fontsize',12);
   set(H2,'callback','my_callbacks');
   jFrame = undecorateFig(H1);

function my_callbacks
   img2 = imread('peppers.png'); 
   subplot(1,2,2);
   subimage(img2);
   axis off;
</pre>
<p>However, after I use  &#8216;undecorateFig&#8217; tool, the &#8216;OK&#8217; button doesn&#8217;t work .</p>
<p>Best regards!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
