Path: news.mathworks.com!not-for-mail
From: "G.A.M. " <x0zero@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Visible figure has no gui handle. Why?
Date: Mon, 27 Aug 2007 19:33:44 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 38
Message-ID: <fav8uo$5oc$1@fred.mathworks.com>
References: <fav61d$7a5$1@fred.mathworks.com> <fav7q6$d5g$1@canopus.cc.umanitoba.ca>
Reply-To: "G.A.M. " <x0zero@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1188243224 5900 172.30.248.38 (27 Aug 2007 19:33:44 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 27 Aug 2007 19:33:44 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1030060
Xref: news.mathworks.com comp.soft-sys.matlab:425797


Hi. Thank you for your tips. I now understand a bit about
handle visibility (and I now have some clues about what to
search for in help).

Using the property inspector I saw that the figure's
HandleVisibility property was set to 'callback'. I changed
it to 'on', as advised here:
http://www.mathworks.cn/matlabcentral/newsreader/view_thread/155215

However, that did not change the fact that my code cannot
find the handle. Apparently the HandleVisibility property is
 later being set to 'off' by some process I'm not aware of.

What built-in functions would set HandleVisibility to off? I
haven't written any code to do that, so I'm not sure why it
is happening. I appreciate any other tips.

roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <fav7q6$d5g$1@canopus.cc.umanitoba.ca>...
> In article <fav61d$7a5$1@fred.mathworks.com>, G.A.M. 
<x0zero@gmail.com> wrote:
> >Hello. I have an application that creates and displays a
> >figure (as the main window for the GUI). The figure is
> >displayed on screen, but the gui handle doesn't exist
> >immediately after the figure is created.
> 
> >Executing h=findobj shows me that the figure and all its
> >uicontrols are not among the existing objects even though
> >the figure is currently visible on the screen.
> 
> The HandleVisibility property of the figure has been set
to 'off'.
> 
> See findall() and allchild()
> -- 
>    Okay, buzzwords only. Two syllables, tops.  -- Laurie
Anderson