comp.lang.ada
 help / color / mirror / Atom feed
From: Michael Bode <m.g.bode@web.de>
Subject: Re: GWindows
Date: Fri, 10 Nov 2006 22:14:25 +0100
Date: 2006-11-10T22:14:25+01:00	[thread overview]
Message-ID: <ej2q3i$mvl$1@online.de> (raw)
In-Reply-To: 1mzl12pq4w3iw$.90aqqjqpdt8f.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> Though GTK+ performs quite poorly on Windows platform. 

How? For me it works quite well. 

> And overall, when its documentation tells you that you fundamentally
> cannot save and restore the position of a window, what could you
> say?

Get toplevel window position from a widget:
    
   declare
      Gwin : Gdk.Window.Gdk_Window;
      X, Y : Glib.Gint;
   begin
      Gwin := Gtk.Widget.Get_Window (Get_Toplevel (Widget));
      Gdk.Window.Get_Position (Gwin, X, Y);
   end;

Set toplevel position:
    Gtk.Widget.Set_UPosition (Widget, X, Y);


-- 
Michael Bode



  reply	other threads:[~2006-11-10 21:14 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-07 16:53 GWindows Fionn Mac Cumhaill
2006-11-07 19:31 ` GWindows Michael Bode
2006-11-08 21:23   ` GWindows Stephen
2006-11-09  7:04   ` GWindows Stephen Leake
2006-11-09 12:38     ` GWindows Jeffrey Creem
2006-11-09 18:02     ` GWindows Michael Bode
2006-11-09 22:23       ` GWindows Yves Bailly
2006-11-10 14:09         ` GWindows Alex R. Mosteo
2006-11-10 18:38           ` GWindows Yves Bailly
2006-11-10  8:56       ` GWindows Dmitry A. Kazakov
2006-11-10 21:14         ` Michael Bode [this message]
2006-11-11  9:23           ` GWindows Dmitry A. Kazakov
2006-11-11 14:50             ` GWindows Michael Bode
2006-11-10 22:40         ` GWindows Pascal Obry
2006-11-11  9:29           ` GWindows Dmitry A. Kazakov
2006-11-10 13:33       ` GWindows Stephen Leake
2006-11-08 21:22 ` GWindows Stephen
2006-11-09 14:12   ` GWindows Fionn Mac Cumhaill
2006-11-09 20:15     ` GWindows Stephen
2006-11-09 20:15     ` GWindows Stephen
2006-11-09  7:02 ` GWindows Stephen Leake
2006-11-10 18:34 ` GWindows Andre
2006-11-11  5:23   ` GWindows Fionn Mac Cumhaill
  -- strict thread matches above, loose matches on Subject: below --
2002-01-23 13:13 gwindows chris.danx
2002-01-23 21:58 ` gwindows chris.danx
2002-01-28 17:01 ` gwindows David Botton
2002-01-29  9:01   ` gwindows chris.danx
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox