|
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.
|