[Gtk-sharp-list] Extending Gtk.Window

Pablo Fischer pablo@pablo.com.mx
Mon, 24 Nov 2003 22:48:51 -0600


Sorry for re-asking too late :) but I'll to check if I'm right with the

1. Ok, its clear that It's not recommended to create Gtk.Widget object
(that derives from Gtk.Widget or Gtk.Window for example) cause I have a
simple object and not a GladeWidget to transform it in my object,
right?. So, if I'm going to create my own Widget, the best it to code
the Widget 'on the fly'?. For example, I want to create a special window
that derives from Gtk.Window and I have a .glade interface with that
design the best way to do it is to create inside the Class a Gtk.Window
object and 'copy' to it the Glade object?.

2. Like question 1, I found a code (GladesharpTest.cs) that uses derives
from Gtk.Window and uses a Glade File to load the GUI so I get confused
:(, the code:


Thanks Anyway!
El vie, 21-11-2003 a las 14:41, Miguel de Icaza escribi=F3:
> Hello,
> > Ok, So, the question is: When to derive from a Gtk.Object?.. When I'm
> > using a glade file or when Im coding 'on the fly'?.
> Glade will never instantiate types that it does not know about in
> advance.  So you derive widgets and use them, as long as you dont
> expect they will be created by Glade.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131 AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt