[Gtk-sharp-list] Embedded forms

Raúl Moratalla raul.moratalla@ono.com
Fri, 16 Jul 2004 14:32:04 +0200


Fredrik Nilsson escribió:

>On tor, 2004-07-15 at 23:46 +0200, Raúl Moratalla wrote:
>  
>
>>Hi everybody,
>>I am a newbie programmer with MONO and GTK# and I would like to know if 
>>should be possible to do the following:
>>I have designed 3 forms with Glade, one of them is the master. I would 
>>like to load form2 at the bottom of the master form (as it was embedded) 
>>when I click on a button, and if I click in another button I want to 
>>load the form3 (and hide form2) embedded at the bottom of the master form.
>>Should it be possible? Could anyone explain to me how to do this?
>>
>>Thanks in advance,
>>
>>Raúl
>>    
>>
>
>Hi Raúl,
>
>This is how I would do it:
>
>Add a hidden notebook at the bottom of the master.
>Also you should hide the tabs from the notebook.
>
>Then, instead of having two new forms (form2 and form3),
>put the contents of form2 in first page of notebook, and the contents of
>form3 in second page of notebook.
>
>Then when you click on the first button, show the notebook.
>And when you click the second button, show tab page two of the notebook.
>
>Hope this helps!
>
>Good luck,
>
>/Fredrik
>
>
>  
>
Thanks for the suggestion Fredrik, I didn't saw the notebook control :) 
As you suggest this a good way for do it.

Cheers,

Raúl