Kamal 99 posts since
Oct 17, 2007
6.
Re: How to call the one layout to another layout Apr 1, 2008 6:08 AM

in response to:
mannusanghi
Unfortunately I still do not understand the problem so this may not be the answer you are looking for.
Curl has two types of Containers. One which can have a Single Child, like a BaseFrame (Frame for example is a subclass of it). The other one is a SequenceBox (VBox, HBox, Canvas etc are subclasses of it) that can have multiple children.
View (Top level Window) / AppletView (Child Window, e.g. when in Browser) are the two objects that represent a Window and a Child Window respectively. All of your Graphical contents will be in one of these.
Do you want to put say two children inside a VBox and want to show/hide one or the other - like a dropdown pane?
Or you have two children say of VBox. You want to show another View or a Popup Dialog (which basically is a View) when you click on one Child and another one when you click on the other Child.
Or you have a SequenceBox with two Dialogs (remember they are Frames). When you say show one of them then the Dialog is shown in its own View. In this case the Dialog is removed from the SequenceBox Graphical Hierarchy. Now when you close this Dialog's View, you want the Dialog to be back where it was removed from (the original SequenceBox container)?
If it is none of the above cases then kindly add some code, that I can look at, to understand and answer your question to your satisfaction.