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

Contact us at files@mathworks.com