<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254795</link>
    <title>MATLAB Central Newsreader - How do I disable the Windows Close Button in a GUI?</title>
    <description>Feed for thread: How do I disable the Windows Close Button in a GUI?</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>Fri, 26 Jun 2009 21:35:02 -0400</pubDate>
      <title>How do I disable the Windows Close Button in a GUI?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254795#660834</link>
      <author>William </author>
      <description>I have a GUI that uses three separate windows; a main window and two auxiliary windows.  When the aux windows are not being used, they are still open, but set to invisible.  I am trying to make it impossible for the user to close the window using the Windows red &quot;X&quot; Close button in the top right of the Window.  If the user clicks on the Close button the window can never be opened again as data is lost.  I would like to either:&lt;br&gt;
&lt;br&gt;
1)  Disable the Close button to force the user to press a Close button I have created which just makes the window invisible, or&lt;br&gt;
&lt;br&gt;
2)  Program the close button to make the window invisible directly.&lt;br&gt;
&lt;br&gt;
Is there a way to disable or modify the properties of the Windows Close button?&lt;br&gt;
&lt;br&gt;
Thank you,&lt;br&gt;
Billy</description>
    </item>
    <item>
      <pubDate>Fri, 26 Jun 2009 21:39:07 -0400</pubDate>
      <title>Re: How do I disable the Windows Close Button in a GUI?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254795#660835</link>
      <author>Nathan</author>
      <description>On Jun 26, 2:35 pm, &quot;William&quot; &amp;lt;w_kin...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; I have a GUI that uses three separate windows; a main window and two auxiliary windows.  When the aux windows are not being used, they are still open, but set to invisible.  I am trying to make it impossible for the user to close the window using the Windows red &quot;X&quot; Close button in the top right of the Window.  If the user clicks on the Close button the window can never be opened again as data is lost.  I would like to either:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 1)  Disable the Close button to force the user to press a Close button I have created which just makes the window invisible, or&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 2)  Program the close button to make the window invisible directly.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Is there a way to disable or modify the properties of the Windows Close button?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thank you,&lt;br&gt;
&amp;gt; Billy&lt;br&gt;
Check here:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.co.kr/matlabcentral/newsreader/view_thread/165498&quot;&gt;http://www.mathworks.co.kr/matlabcentral/newsreader/view_thread/165498&lt;/a&gt;&lt;br&gt;
For the close request function, just set that window's visibility to&lt;br&gt;
off.&lt;br&gt;
&lt;br&gt;
Hope this works for you.&lt;br&gt;
-Nathan</description>
    </item>
    <item>
      <pubDate>Fri, 26 Jun 2009 21:51:01 -0400</pubDate>
      <title>Re: How do I disable the Windows Close Button in a GUI?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254795#660838</link>
      <author>William </author>
      <description>Nathan &amp;lt;ngreco32@gmail.com&amp;gt; wrote in message &amp;lt;7cde863a-b0ea-4eed-885e-11adf6e3117f@x1g2000prh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Jun 26, 2:35 pm, &quot;William&quot; &amp;lt;w_kin...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; I have a GUI that uses three separate windows; a main window and two auxiliary windows.  When the aux windows are not being used, they are still open, but set to invisible.  I am trying to make it impossible for the user to close the window using the Windows red &quot;X&quot; Close button in the top right of the Window.  If the user clicks on the Close button the window can never be opened again as data is lost.  I would like to either:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; 1)  Disable the Close button to force the user to press a Close button I have created which just makes the window invisible, or&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; 2)  Program the close button to make the window invisible directly.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Is there a way to disable or modify the properties of the Windows Close button?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thank you,&lt;br&gt;
&amp;gt; &amp;gt; Billy&lt;br&gt;
&amp;gt; Check here:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.co.kr/matlabcentral/newsreader/view_thread/165498&quot;&gt;http://www.mathworks.co.kr/matlabcentral/newsreader/view_thread/165498&lt;/a&gt;&lt;br&gt;
&amp;gt; For the close request function, just set that window's visibility to&lt;br&gt;
&amp;gt; off.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hope this works for you.&lt;br&gt;
&amp;gt; -Nathan&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Hi Nathan,&lt;br&gt;
&lt;br&gt;
Thanks!  I forgot about that function.  Silly me!  Thanks for the quick response...I will fix this once and for all when I get home.&lt;br&gt;
&lt;br&gt;
Billy</description>
    </item>
  </channel>
</rss>

