<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870</link>
    <title>MATLAB Central Newsreader - Report generator from a GUI</title>
    <description>Feed for thread: Report generator from 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>Mon, 20 Oct 2008 19:11:02 -0400</pubDate>
      <title>Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606423</link>
      <author>Sonsoles Romero Garc&amp;#xED;a</author>
      <description>I'm using the report generator to generate a automatic report for a tool. I want to launch the report from a GUI, my problem is that once the report is generated, my GUI is closed and deleted (the report generator functionality deletes all the figures opened by Matlab).&lt;br&gt;
&lt;br&gt;
Does anybody know how can I keep my GUI opened and get the report generated?&lt;br&gt;
&lt;br&gt;
I've tried saving the figure but it doesn't work (the GUI has Java objects and I lose them, and by loading again all the handles are &quot;renamed&quot; and the GUI is not working any more)</description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 08:14:27 -0400</pubDate>
      <title>Re: Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606549</link>
      <author>tristram.scott@ntlworld.com (Tristram Scott)</author>
      <description>Sonsoles Romero Garc&amp;#xED;a &amp;lt;krokketilla@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; I'm using the report generator to generate a automatic report for a tool.&lt;br&gt;
&amp;gt; I want to launch the report from a GUI, my problem is that once the report&lt;br&gt;
&amp;gt; is generated, my GUI is closed and deleted (the report generator&lt;br&gt;
&amp;gt; functionality deletes all the figures opened by Matlab).&lt;br&gt;
&lt;br&gt;
That's nice of it...&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Does anybody know how can I keep my GUI opened and get the report generated?&lt;br&gt;
&lt;br&gt;
Perhaps if yopu create your figure thus:&lt;br&gt;
&lt;br&gt;
h1 = figure('handlevisibility','off');&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Dr Tristram J. Scott               &lt;br&gt;
Energy Consultant                  </description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 09:23:02 -0400</pubDate>
      <title>Re: Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606559</link>
      <author>Sonsoles Romero Garc&amp;#xED;a</author>
      <description>I forgot to mention I also tried setting my GUI handlevisibility to off, and it didn't work. &lt;br&gt;
&lt;br&gt;
Thank you very much anyway&lt;br&gt;
Any others ideas?&lt;br&gt;
&lt;br&gt;
tristram.scott@ntlworld.com (Tristram Scott) wrote in message &amp;lt;DbgLk.9103$Qh1.431@newsfe30.ams2&amp;gt;...&lt;br&gt;
&amp;gt; Sonsoles Romero Garc?a &amp;lt;krokketilla@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; I'm using the report generator to generate a automatic report for a tool.&lt;br&gt;
&amp;gt; &amp;gt; I want to launch the report from a GUI, my problem is that once the report&lt;br&gt;
&amp;gt; &amp;gt; is generated, my GUI is closed and deleted (the report generator&lt;br&gt;
&amp;gt; &amp;gt; functionality deletes all the figures opened by Matlab).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; That's nice of it...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Does anybody know how can I keep my GUI opened and get the report generated?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Perhaps if yopu create your figure thus:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; h1 = figure('handlevisibility','off');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Dr Tristram J. Scott               &lt;br&gt;
&amp;gt; Energy Consultant                  </description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 10:25:25 -0400</pubDate>
      <title>Re: Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606568</link>
      <author>tristram.scott@ntlworld.com (Tristram Scott)</author>
      <description>Sonsoles Romero Garc&amp;#xED;a &amp;lt;krokketilla@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; I forgot to mention I also tried setting my GUI handlevisibility to off,&lt;br&gt;
&amp;gt; and it didn't work.  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank you very much anyway&lt;br&gt;
&amp;gt; Any others ideas?&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
File a bug report.  This really isn't very good behaviour from a toolbox.&lt;br&gt;
&lt;br&gt;
I had noticed this myself quite some time ago, but chose to ignore the gui&lt;br&gt;
interface as much as possible.  The difficulty, though is that the report&lt;br&gt;
generator toolbox has been designed to be run via its own gui, which&lt;br&gt;
doesn't lend it well to integration with another gui, or a command line&lt;br&gt;
call.  This is something I have raised with TMW before, but I am yet to see&lt;br&gt;
any great changes.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Dr Tristram J. Scott               &lt;br&gt;
Energy Consultant                  </description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 12:03:02 -0400</pubDate>
      <title>Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606587</link>
      <author>Ben </author>
      <description>&quot;Sonsoles Romero Garc?a&quot; &amp;lt;krokketilla@gmail.com&amp;gt; wrote in message &amp;lt;gdil46$a66$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I'm using the report generator to generate a automatic report for a tool. I want to launch the report from a GUI, my problem is that once the report is generated, my GUI is closed and deleted (the report generator functionality deletes all the figures opened by Matlab).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Does anybody know how can I keep my GUI opened and get the report generated?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I've tried saving the figure but it doesn't work (the GUI has Java objects and I lose them, and by loading again all the handles are &quot;renamed&quot; and the GUI is not working any more)&lt;br&gt;
&lt;br&gt;
I had the same thing happen to one of my GUIs and here was my work around.&lt;br&gt;
&lt;br&gt;
I cleared out the CloseRequestFcn for the main figure of the GUI by setting it equal to empty string.  (I think I did it in the opening function).&lt;br&gt;
&lt;br&gt;
set(handle.MainGUI,'CloseRequestFcn','')&lt;br&gt;
&lt;br&gt;
This will prevent anything from closing it.  Event the &quot;X&quot; close button on the figure. Also it will be impossible to use delete() or close(). &lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;So to actually close the GUI when I really wanted to I added a &quot;Close Button&quot; on my GUI (just a pushbutton).  Make the new Close button's callback to be as follows:&lt;br&gt;
&lt;br&gt;
set(handle.MainGUI,'CloseRequestFcn','closereq')&lt;br&gt;
close(handle.MainGUI)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Hope that helps</description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 13:40:07 -0400</pubDate>
      <title>Re: Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606608</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Ben &quot; &amp;lt;basburywvu.nospam@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:gdkgdm$7hu$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &quot;Sonsoles Romero Garc?a&quot; &amp;lt;krokketilla@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;gdil46$a66$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; I'm using the report generator to generate a automatic report for a tool. &lt;br&gt;
&amp;gt;&amp;gt; I want to launch the report from a GUI, my problem is that once the &lt;br&gt;
&amp;gt;&amp;gt; report is generated, my GUI is closed and deleted (the report generator &lt;br&gt;
&amp;gt;&amp;gt; functionality deletes all the figures opened by Matlab).&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Does anybody know how can I keep my GUI opened and get the report &lt;br&gt;
&amp;gt;&amp;gt; generated?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I've tried saving the figure but it doesn't work (the GUI has Java &lt;br&gt;
&amp;gt;&amp;gt; objects and I lose them, and by loading again all the handles are &lt;br&gt;
&amp;gt;&amp;gt; &quot;renamed&quot; and the GUI is not working any more)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I had the same thing happen to one of my GUIs and here was my work around.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I cleared out the CloseRequestFcn for the main figure of the GUI by &lt;br&gt;
&amp;gt; setting it equal to empty string.  (I think I did it in the opening &lt;br&gt;
&amp;gt; function).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; set(handle.MainGUI,'CloseRequestFcn','')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This will prevent anything from closing it.  Event the &quot;X&quot; close button on &lt;br&gt;
&amp;gt; the figure. Also it will be impossible to use delete() or close().&lt;br&gt;
&lt;br&gt;
You're half right.  CLOSE will not close a figure whose CloseRequestFcn is &lt;br&gt;
set to the empty string (or to something that doesn't call DELETE on the &lt;br&gt;
figure handle.)  DELETE will.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; h = figure('CloseRequestFcn', 'disp(''I refuse to be closed'')');&lt;br&gt;
&amp;gt;&amp;gt; close(h)&lt;br&gt;
I refuse to be closed&lt;br&gt;
&amp;gt;&amp;gt; close(h)&lt;br&gt;
I refuse to be closed&lt;br&gt;
&amp;gt;&amp;gt; % click on the X&lt;br&gt;
I refuse to be closed&lt;br&gt;
&amp;gt;&amp;gt; delete(h)&lt;br&gt;
&lt;br&gt;
and the figure is gone.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt;  So to actually close the GUI when I really wanted to I added a &quot;Close &lt;br&gt;
&amp;gt; Button&quot; on my GUI (just a pushbutton).  Make the new Close button's &lt;br&gt;
&amp;gt; callback to be as follows:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; set(handle.MainGUI,'CloseRequestFcn','closereq')&lt;br&gt;
&amp;gt; close(handle.MainGUI)&lt;br&gt;
&lt;br&gt;
Or you could have the Close button's callback be:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
delete(gcbf)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 14:03:03 -0400</pubDate>
      <title>Re: Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606614</link>
      <author>Sonsoles Romero Garc&amp;#xED;a</author>
      <description>Yes, Steven is right,I also had tried changing the CloseRequestFcn, hoping for something as close all was in the code, but my GUI disappeared so I think there is a delete all or something like that. &lt;br&gt;
&lt;br&gt;
Does somebody know which function in the report generator blockset is the one in charge of close all the figures? Maybe if the code is open I will be able to change it.&lt;br&gt;
&lt;br&gt;
Now, I'm working with the debugger searching for it.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;gdkm3n$fds$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Ben &quot; &amp;lt;basburywvu.nospam@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:gdkgdm$7hu$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Sonsoles Romero Garc?a&quot; &amp;lt;krokketilla@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;gdil46$a66$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; I'm using the report generator to generate a automatic report for a tool. &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; I want to launch the report from a GUI, my problem is that once the &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; report is generated, my GUI is closed and deleted (the report generator &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; functionality deletes all the figures opened by Matlab).&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Does anybody know how can I keep my GUI opened and get the report &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; generated?&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; I've tried saving the figure but it doesn't work (the GUI has Java &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; objects and I lose them, and by loading again all the handles are &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &quot;renamed&quot; and the GUI is not working any more)&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I had the same thing happen to one of my GUIs and here was my work around.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I cleared out the CloseRequestFcn for the main figure of the GUI by &lt;br&gt;
&amp;gt; &amp;gt; setting it equal to empty string.  (I think I did it in the opening &lt;br&gt;
&amp;gt; &amp;gt; function).&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; set(handle.MainGUI,'CloseRequestFcn','')&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; This will prevent anything from closing it.  Event the &quot;X&quot; close button on &lt;br&gt;
&amp;gt; &amp;gt; the figure. Also it will be impossible to use delete() or close().&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You're half right.  CLOSE will not close a figure whose CloseRequestFcn is &lt;br&gt;
&amp;gt; set to the empty string (or to something that doesn't call DELETE on the &lt;br&gt;
&amp;gt; figure handle.)  DELETE will.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; h = figure('CloseRequestFcn', 'disp(''I refuse to be closed'')');&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; close(h)&lt;br&gt;
&amp;gt; I refuse to be closed&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; close(h)&lt;br&gt;
&amp;gt; I refuse to be closed&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; % click on the X&lt;br&gt;
&amp;gt; I refuse to be closed&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; delete(h)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; and the figure is gone.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;  So to actually close the GUI when I really wanted to I added a &quot;Close &lt;br&gt;
&amp;gt; &amp;gt; Button&quot; on my GUI (just a pushbutton).  Make the new Close button's &lt;br&gt;
&amp;gt; &amp;gt; callback to be as follows:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; set(handle.MainGUI,'CloseRequestFcn','closereq')&lt;br&gt;
&amp;gt; &amp;gt; close(handle.MainGUI)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Or you could have the Close button's callback be:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; delete(gcbf)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 15:01:28 -0400</pubDate>
      <title>Re: Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606620</link>
      <author>tristram.scott@ntlworld.com (Tristram Scott)</author>
      <description>Sonsoles Romero Garc&amp;#xED;a &amp;lt;krokketilla@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Yes, Steven is right,I also had tried changing the CloseRequestFcn,&lt;br&gt;
&amp;gt; hoping for something as close all was in the code, but my GUI disappeared&lt;br&gt;
&amp;gt; so I think there is a delete all or something like that. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Does somebody know which function in the report generator blockset is the&lt;br&gt;
&amp;gt; one in charge of close all the figures? Maybe if the code is open I will be&lt;br&gt;
&amp;gt; able to change it.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Now, I'm working with the debugger searching for it.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
What if you try a variation on Steven's suggestion:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; h = figure('DeleteFcn', 'error(''I refuse to be closed'')');&lt;br&gt;
&lt;br&gt;
Then perhaps when the figure gets deleted you will get a call stack with the &lt;br&gt;
error message.&lt;br&gt;
&lt;br&gt;
I still say you should file a bug report.  The report generator has no&lt;br&gt;
business closing your figure windows.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Dr Tristram J. Scott               &lt;br&gt;
Energy Consultant                  </description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 16:34:02 -0400</pubDate>
      <title>Re: Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606646</link>
      <author>Sonsoles Romero Garc&amp;#xED;a</author>
      <description>That was a good idea, unfortunately now I get the error message and my window is close, once the DeleteFnc is called (and BeingDelete is &quot;on&quot;) I don't know how to stop the processing of deleting it (I don't think is possible).&lt;br&gt;
&lt;br&gt;
I have already filled a bug report, let's see if they know some work around, I really need it.&lt;br&gt;
&lt;br&gt;
Thanks very much!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
tristram.scott@ntlworld.com (Tristram Scott) wrote in message &amp;lt;c9mLk.44748$Zl2.1783@newsfe01.ams2&amp;gt;...&lt;br&gt;
&amp;gt; Sonsoles Romero Garc?a &amp;lt;krokketilla@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Yes, Steven is right,I also had tried changing the CloseRequestFcn,&lt;br&gt;
&amp;gt; &amp;gt; hoping for something as close all was in the code, but my GUI disappeared&lt;br&gt;
&amp;gt; &amp;gt; so I think there is a delete all or something like that. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Does somebody know which function in the report generator blockset is the&lt;br&gt;
&amp;gt; &amp;gt; one in charge of close all the figures? Maybe if the code is open I will be&lt;br&gt;
&amp;gt; &amp;gt; able to change it.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Now, I'm working with the debugger searching for it.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What if you try a variation on Steven's suggestion:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; h = figure('DeleteFcn', 'error(''I refuse to be closed'')');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Then perhaps when the figure gets deleted you will get a call stack with the &lt;br&gt;
&amp;gt; error message.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I still say you should file a bug report.  The report generator has no&lt;br&gt;
&amp;gt; business closing your figure windows.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Dr Tristram J. Scott               &lt;br&gt;
&amp;gt; Energy Consultant                  </description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 19:19:45 -0400</pubDate>
      <title>Re: Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606689</link>
      <author>tristram.scott@ntlworld.com (Tristram Scott)</author>
      <description>Sonsoles Romero Garc&amp;#xED;a &amp;lt;krokketilla@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; That was a good idea, unfortunately now I get the error message and my&lt;br&gt;
&amp;gt; window is close, once the DeleteFnc is called (and BeingDelete is &quot;on&quot;) I&lt;br&gt;
&amp;gt; don't know how to stop the processing of deleting it (I don't think is&lt;br&gt;
&amp;gt; possible).&lt;br&gt;
&lt;br&gt;
When it gives the error message it should give a call stack, telling you&lt;br&gt;
which functions it was executing at the time of the error.  Trace these&lt;br&gt;
back up to find the one that did the delete() call.&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have already filled a bug report, let's see if they know some work&lt;br&gt;
&amp;gt; around, I really need it.&lt;br&gt;
&lt;br&gt;
Excellent.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Dr Tristram J. Scott               &lt;br&gt;
Energy Consultant                  </description>
    </item>
    <item>
      <pubDate>Wed, 22 Oct 2008 09:02:02 -0400</pubDate>
      <title>Re: Report generator from a GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237870#606782</link>
      <author>Sonsoles Romero Garc&amp;#xED;a</author>
      <description>tristram.scott@ntlworld.com (Tristram Scott) wrote in message &amp;lt;lXpLk.22060$FH4.10121@newsfe21.ams2&amp;gt;...&lt;br&gt;
&amp;gt; Sonsoles Romero Garc?a &amp;lt;krokketilla@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; That was a good idea, unfortunately now I get the error message and my&lt;br&gt;
&amp;gt; &amp;gt; window is close, once the DeleteFnc is called (and BeingDelete is &quot;on&quot;) I&lt;br&gt;
&amp;gt; &amp;gt; don't know how to stop the processing of deleting it (I don't think is&lt;br&gt;
&amp;gt; &amp;gt; possible).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; When it gives the error message it should give a call stack, telling you&lt;br&gt;
&amp;gt; which functions it was executing at the time of the error.  Trace these&lt;br&gt;
&amp;gt; back up to find the one that did the delete() call.&lt;br&gt;
&amp;gt; &lt;br&gt;
Another excellent idea! Thanks!&lt;br&gt;
&lt;br&gt;
But I only get this:&lt;br&gt;
??? Error while evaluating uitoggletool OnCallback.&lt;br&gt;
&lt;br&gt;
??? Error while evaluating figure DeleteFcn.&lt;br&gt;
&lt;br&gt;
Caught unexpected exception of unknown type.&lt;br&gt;
&lt;br&gt;
I have tried with the profile viewer, but it seems that most of the functions used to generate the report are .p, so my guess is the &quot;delete&quot; I am looking for is in one of them, so unfortunately I will not be able to change it. :-( &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I have already filled a bug report, let's see if they know some work&lt;br&gt;
&amp;gt; &amp;gt; around, I really need it.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Excellent.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Dr Tristram J. Scott               &lt;br&gt;
&amp;gt; Energy Consultant                  </description>
    </item>
  </channel>
</rss>

