Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Report generator from a GUI
Date: Tue, 21 Oct 2008 16:34:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 33
Message-ID: <gdl09q$422$1@fred.mathworks.com>
References: <gdil46$a66$1@fred.mathworks.com> <gdkgdm$7hu$1@fred.mathworks.com> <gdkm3n$fds$1@fred.mathworks.com> <gdknen$33e$1@fred.mathworks.com> <c9mLk.44748$Zl2.1783@newsfe01.ams2>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1224606842 4162 172.30.248.37 (21 Oct 2008 16:34:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 21 Oct 2008 16:34:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1118512
Xref: news.mathworks.com comp.soft-sys.matlab:496565


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 "on") I don't know how to stop the processing of deleting it (I don't think is possible).

I have already filled a bug report, let's see if they know some work around, I really need it.

Thanks very much!


tristram.scott@ntlworld.com (Tristram Scott) wrote in message <c9mLk.44748$Zl2.1783@newsfe01.ams2>...
> Sonsoles Romero Garc?a <krokketilla@gmail.com> wrote:
> > 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. 
> > 
> > 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.
> > 
> > Now, I'm working with the debugger searching for it.
> > 
> 
> What if you try a variation on Steven's suggestion:
> 
> >> h = figure('DeleteFcn', 'error(''I refuse to be closed'')');
> 
> Then perhaps when the figure gets deleted you will get a call stack with the 
> error message.
> 
> I still say you should file a bug report.  The report generator has no
> business closing your figure windows.
> 
> -- 
> Dr Tristram J. Scott               
> Energy Consultant