[gtkada] getting window positions
Stephen Leake
stephen_leake at acm.org
Mon Oct 7 13:34:58 CEST 2002
manuel.op.de.coul at eon-benelux.com writes:
> Stephen Leake wrote:
> >But I can't figure out how to get the current window position.
>
> Gdk.Window.Get_Position(Get_Window(My_Window), Child_Pos_X, Child_Pos_Y);
Ah. I didn't think of looking in Gdk. Thanks.
>
>
> >Another issue is what event to capture this in. Currently, I have
> >it in a handler for "delete_event".
>
> Use "remove".
Hmm. That's defined for containers. But these windows are not in a
container; they are top level windows. But I'll give it a try; it
won't be the first time the manual was wrong :).
--
-- Stephe
More information about the gtkada
mailing list