[Gtk-sharp-list] Absolute positioning using Gtk.Fixed container

Dan Winship danw at novell.com
Thu Aug 25 10:39:05 EDT 2005


Jo Vermeulen wrote:
> My method requires that I can get the position of each widget at all
> times. I haven't found how to do this in Gtk# though.

Given

   Gtk.Fixed fixed;
   Gtk.Widget child;

do:

   Gtk.Fixed.FixedChild fc = fixed[child] as Gtk.Fixed.FixedChild;
   Console.WriteLine ("child is at {0}, {1}", fc.X, fc.Y);

-- Dan


More information about the Gtk-sharp-list mailing list