comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GWindows
Date: Sat, 11 Nov 2006 10:23:32 +0100
Date: 2006-11-11T10:23:16+01:00	[thread overview]
Message-ID: <ulk2po61nmi8$.8w68edxpwarx$.dlg@40tude.net> (raw)
In-Reply-To: ej2q3i$mvl$1@online.de

On Fri, 10 Nov 2006 22:14:25 +0100, Michael Bode wrote:

> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> 
>> Though GTK+ performs quite poorly on Windows platform. 
> 
> How? For me it works quite well. 

Did you try tree view under Windows, for example? I did, a lot. There are
numerous problems with it. For instance, refresh does not work well upon
resizing of panes containing tree views.

Do you have X-sever (cygnus) and a Linux host? Compile your Ada application
on Linux and start it side-by-side once remotely under X-sever once
natively. The difference between X11 and Windows GTK will become obvious.

>> 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);

I only quoted GTK+ documentation. GtkAda's one repeats it:

https://libre2.adacore.com/GtkAda/docs/2.8/gtkada_rm/gtk-window.html

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2006-11-11  9:23 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         ` GWindows Michael Bode
2006-11-11  9:23           ` Dmitry A. Kazakov [this message]
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