From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,60c31b5757cc80b7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news2.google.com!news.germany.com!news.teledata-fn.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: GWindows Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <31e1l2t4v3kt5h3fhsto8ujju8peob63i9@4ax.com> <1mzl12pq4w3iw$.90aqqjqpdt8f.dlg@40tude.net> Date: Sat, 11 Nov 2006 10:23:32 +0100 Message-ID: NNTP-Posting-Date: 11 Nov 2006 10:23:16 CET NNTP-Posting-Host: 1da5149f.newsspool1.arcor-online.net X-Trace: DXC=^lBUKGVnl6;gP]QSEBQ^d4ic==]BZ:af>4Fo<]lROoR1^YC2XCjHcb9Fkol<@HbO96DNcfSJ;bb[5IRnRBaCd1X>0?LU6mk0BQ456D[1O;: X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:7409 Date: 2006-11-11T10:23:16+01:00 List-Id: On Fri, 10 Nov 2006 22:14:25 +0100, Michael Bode wrote: > "Dmitry A. Kazakov" 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