mail-archives/gtk-sharp-list/2004-July/004462.html

103 строки
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Embedded forms
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:raul.moratalla%40ono.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK REL="Previous" HREF="004456.html">
<LINK REL="Next" HREF="004457.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Embedded forms
</H1>
<B>Raúl Moratalla
</B>
<A HREF="mailto:raul.moratalla%40ono.com"
TITLE="[Gtk-sharp-list] Embedded forms">raul.moratalla@ono.com
</A><BR>
<I>Fri, 16 Jul 2004 14:32:04 +0200</I>
<P><UL>
<LI> Previous message: <A HREF="004456.html">[Gtk-sharp-list] Embedded forms
</A></li>
<LI> Next message: <A HREF="004457.html">[Gtk-sharp-list] Embedded forms
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4462">[ date ]</a>
<a href="thread.html#4462">[ thread ]</a>
<a href="subject.html#4462">[ subject ]</a>
<a href="author.html#4462">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Fredrik Nilsson escribió:
&gt;<i>On tor, 2004-07-15 at 23:46 +0200, Raúl Moratalla wrote:
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;&gt;<i>Hi everybody,
</I>&gt;&gt;<i>I am a newbie programmer with MONO and GTK# and I would like to know if
</I>&gt;&gt;<i>should be possible to do the following:
</I>&gt;&gt;<i>I have designed 3 forms with Glade, one of them is the master. I would
</I>&gt;&gt;<i>like to load form2 at the bottom of the master form (as it was embedded)
</I>&gt;&gt;<i>when I click on a button, and if I click in another button I want to
</I>&gt;&gt;<i>load the form3 (and hide form2) embedded at the bottom of the master form.
</I>&gt;&gt;<i>Should it be possible? Could anyone explain to me how to do this?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>Thanks in advance,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>Raúl
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;<i>
</I>&gt;<i>Hi Raúl,
</I>&gt;<i>
</I>&gt;<i>This is how I would do it:
</I>&gt;<i>
</I>&gt;<i>Add a hidden notebook at the bottom of the master.
</I>&gt;<i>Also you should hide the tabs from the notebook.
</I>&gt;<i>
</I>&gt;<i>Then, instead of having two new forms (form2 and form3),
</I>&gt;<i>put the contents of form2 in first page of notebook, and the contents of
</I>&gt;<i>form3 in second page of notebook.
</I>&gt;<i>
</I>&gt;<i>Then when you click on the first button, show the notebook.
</I>&gt;<i>And when you click the second button, show tab page two of the notebook.
</I>&gt;<i>
</I>&gt;<i>Hope this helps!
</I>&gt;<i>
</I>&gt;<i>Good luck,
</I>&gt;<i>
</I>&gt;<i>/Fredrik
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>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
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="004456.html">[Gtk-sharp-list] Embedded forms
</A></li>
<LI> Next message: <A HREF="004457.html">[Gtk-sharp-list] Embedded forms
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4462">[ date ]</a>
<a href="thread.html#4462">[ thread ]</a>
<a href="subject.html#4462">[ subject ]</a>
<a href="author.html#4462">[ author ]</a>
</LI>
</UL>
</body></html>