Thread Subject: Displaying sub panels in GUI

Subject: Displaying sub panels in GUI

From: Robin

Date: 6 May, 2008 12:28:05

Message: 1 of 2

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.
Van anyone help if it is possible

Best regards

GR



Subject: Displaying sub panels in GUI

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 6 May, 2008 21:07:03

Message: 2 of 2

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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
gui uipanel Robin 6 May, 2008 08:30:24
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com