Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Displaying sub panels in GUI
Date: Tue, 6 May 2008 21:07:03 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 29
Message-ID: <fvqh9n$kg9$1@canopus.cc.umanitoba.ca>
References: <fvpisk$jpf$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1210108023 21001 192.70.172.160 (6 May 2008 21:07:03 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Tue, 6 May 2008 21:07:03 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:467014



In article <fvpisk$jpf$1@fred.mathworks.com>,
Robin  <grayalno.spam@u.washington.edu> wrote:
>hi i am creating a GUI with three main panels. These panels 
>are hidden underneath each other.
>Each panel has some subpanels.
>lets say three main panels are: 1 2 3
>and smaller subpanels 1.1 1.2 1.3 etc
>and so for second and third panel

>now i want to be on panel '2', and display sub panel 1.1 
>with other panel '2' contents.

>How and can I do that ?

>I can change the visibility of main panels but not able to 
>do what i stated above.

If you are talking about uipanel(), then a uipanel always hides everything
"behind" it. Unless there is some mechanism at the Java level,
there is no way to set a uipanel (or any portion of it) to be 
transparent.

If you need to show a portion of a different panel, then you will
either need to reparent the subpanel to be part of the current panel,
or else you will need to copyobj() to make a copy of it into the current
panel.
-- 
  "Not the fruit of experience, but experience itself, is the end."
                                              -- Walter Pater