Thread Subject: linking multiple guis

Subject: linking multiple guis

From: HARI

Date: 23 Nov, 2009 06:45:04

Message: 1 of 3

Hi all,

      I am creating a gui which should consist of several pages. I am unaware how to these pages. should i create seperate guis for each page, if so how to link the pages such that if i click next pressbutton it should move to the nextpage or gui. and how to keep the data connected.
              pls help me

Subject: linking multiple guis

From: ImageAnalyst

Date: 23 Nov, 2009 11:29:11

Message: 2 of 3

On Nov 23, 1:45 am, "HARI " <hariss_kr...@yahoo.com> wrote:
> Hi all,
>
>       I am creating a gui which should consist of several pages. I am unaware how to these pages. should i create seperate guis for each page, if so how to link the pages such that if i click next pressbutton it should move to the nextpage or gui. and how to keep the data connected.
>               pls help me

------------------------------------------------
One way to do it is to put all your controls on panels, with the next
and back buttons under the panels. You keep track of which panel is
being displayed and the next and back buttons just turn the 'visible'
property of the panels 'on' or 'off' to make sure that the one you
want to display is being displayed. If the visibility of the panel is
off, all controls on that panel will also vanish.

Then you could use getappdata() and setappdata() to access the data.
Or you could have all variables be in a global structure, say called
myParameters, and then you make that structure global with the global
statement in each function or callback where you need to access it.

Subject: linking multiple guis

From: Matt Fig

Date: 23 Nov, 2009 12:47:04

Message: 3 of 3

See the answer to Question #31 for a complete example:

http://www.mathworks.com/matlabcentral/fileexchange/24861-35-complete-gui-examples

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com