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,20429ab3df6ba95d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: GtkAda Filechooser Dialog how to change size and position 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: <4d39b63f$0$9930$703f8584@news.kpn.nl> Date: Fri, 21 Jan 2011 17:57:54 +0100 Message-ID: <1beld72p39ip1.es12yha7vtbp$.dlg@40tude.net> NNTP-Posting-Date: 21 Jan 2011 17:57:54 CET NNTP-Posting-Host: ab2cbdef.newsspool2.arcor-online.net X-Trace: DXC=ONaWI6li7fXYI9]OHn9o5^A9EHlD;3YcR4Fo<]lROoRQ8kF On Fri, 21 Jan 2011 17:37:18 +0100, ldries46 wrote: > I'm using the Filechooser dialog to open or save files. The problem I have > is that the dialog is rather big and is never on the same position on the > screen. Don't use dialogs, they are annoying. > I could not find the way how to pin the dialog on to a wanted > position on the screen (for instance 100, 100 from the top left corner of > the screen) neither how to set the default size to a size that I want. > Can anyone help me to find how to do that? See Gtk_Window_Record. Gtk_Dialog_Record is a descendant of. You can explicitly move and size windows. In particular see Move, Set_Position. The default size, geometry, gravity are all issues related to the window manager. In the end much depends on the OS. The minimal dialog size is determined by the widgets placed into it, e.g. by Gtk_File_Chooser_Widget_Record. There is nothing to do about this. Use a different widget instead if chooser is too big. (Which is strange, because the most annoying thing about system file choosing dialogs is that they rather too small than too large.) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de