[Gtk-sharp-list] Gtk# - Glade# - How this Work?

Luciano Callero lnc19@hotmail.com
Thu, 14 Aug 2003 10:06:32 -0300


Hi:

I some code like this:

class A
           {
               static void Main()
                           {
                                     Application.Init();
                                     Glade.XML gXML = Glade.XML(Null, 
"graphics.glade", "wndMain", null);
                                     gXML.Autoconnect(this);
                                     Application.Run()
                           }
                  // this is an event
               static void on_someBtn_clicked(..parameters)
                          {
                                  B oMsg = new MyNameSpace.Message();
                          }
           }

class B
           {
                    public B
                        {
                                  // I Like to run another Dialog (Modal)
                                  Gtk.Dialog WindowDailog;
                                 Glade.XML oDialog = new Glade.XML(.....);
                                 WindowDialog = 
oDialog.GetWidget("DialogFromGlade");
                                 WindowDialog.Show();
                                 // This does not work properly beacause not 
Add the Delegates that i have defined on my Glade Interfase.
                         }
           }

Is this the way to do this???? I Have a main window an i want to open a 
Dialog Window, or another window inside of Main Window.

PLEASE HELP, I CANT FIND ANY DOCS of THIS

_________________________________________________________________
Consigue aquí las mejores y mas recientes ofertas de trabajo en América 
Latina y USA: www.yupimsn.com/empleos