[Gtk-sharp-list] Absolute positioning using Gtk.Fixed container
Jo Vermeulen
jo at lumumba.uhasselt.be
Thu Aug 25 11:39:43 EDT 2005
Op do, 25-08-2005 te 10:39 -0400, schreef Dan Winship:
> 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);
Thanks a lot!
Is there any way I can do the same with the size of a widget
(width/height)?
Kind regards,
--
Jo Vermeulen
More information about the Gtk-sharp-list
mailing list