Path: news.mathworks.com!not-for-mail
From: "G.A.M. " <x0zero@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: GUI question - don't want rmappdata called, but don't want to use uiwait
Date: Mon, 27 Aug 2007 19:22:20 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <fav89c$mkc$1@fred.mathworks.com>
References: <fav3ge$au7$1@fred.mathworks.com> <fav5tr$4ur$1@fred.mathworks.com>
Reply-To: "G.A.M. " <x0zero@gmail.com>
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 1188242540 23180 172.30.248.37 (27 Aug 2007 19:22:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 27 Aug 2007 19:22:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1030060
Xref: news.mathworks.com comp.soft-sys.matlab:425793


Darik - thanks for your reply. You were correct about the
HandleVisibility setting. I changed it to 'on'. However,
after doing this I get the following error:

??? Error using ==> set
uipanel handle passed to 'CurrentFigure' property - valid
figure handle required

When I step through my code, I can check the validity of the
figure's handle in the workspace. I'm not sure if this is
the best debugging technique. However, what I find this way
is that the handle becomes invalid as soon as the figure's
initialization is complete.

When I click on a uicontrol in the figure, the code to
initialize is called all over again. I would have expected
the figure to be initialized once -- unless it is closed. I
would also have expected the figure's handle to remain valid
unless the figure is closed or deleted.

I have no idea why the figure's handle becomes invalid at
the conclusion of initialization. Thanks.

FYI, I posted a related question here:
http://www.mathworks.cn/matlabcentral/newsreader/view_thread/155216


"Darik " <dgambleDEL@uwaterlooDEL.caDEL> wrote in message
<fav5tr$4ur$1@fred.mathworks.com>...
> I would guess that the figure's HandleVisibility is set to
> 'Callback' - as a quick solution you could simply set it to
> 'on' so callback functions for other figures are able to
see it.