From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 02 Jul 2020 09:23:37 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Gtk ada Sizes in pixels Date: Thu, 02 Jul 2020 10:23:38 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <5efd6ceb$0$1439$e4fe514c@news.kpn.nl> User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-STHamid6gVMR9WN4d2ICqvWeNPoapllBi2H1ugkU+zFgG6m5VVK9e8kSMJxckYRXBOLKGnldZlDfZql!UMt5LM/Ac0MDnWirx586yLcVTpDRYY9BDaFNL3jJsOS5YP086Gble70iiJVQi7avW05XoGOc X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3165 Xref: reader01.eternal-september.org comp.lang.ada:59313 List-Id: On Thu, 2 Jul 2020 07:13:15 +0200, ldries46 declaimed the following: >I have a problem with Sizes of Gtk Windows. >On a screen of 3840 * 2160 pixels I want a Main window of about 2000 * >1200 pixels. When I run the program where the initiation code  is herby >given (as far a sizes are involved) it looks like a window of about 3000 >* 2000 pixels what should I do to get real pixels > Isn't this essentially the same question you asked on June 23 in Message-ID: <5ef1a1cc$0$1475$e4fe514c@news.kpn.nl> !> I am using a high definition screen 4K (3840 * 2160 pixels) and two !> computers one with a graphic card which can handle this resolution and !> an older one which can handle up to 1920 * 1080. (the first on Windows !> 10 the second on Linux Ubuntu). I want both computers capable of running !> my programs even if I define a the window on 2000 * 1200 for a Gtk !> project. On the computer that can handle the resolution the there is of !> course no problem. On the other the screen is window is to big for the !> resolution and is shown only partly (of course). If not, they are very closely related... and probably not Ada specific (how does a C/C++ GTK experiment behave?) https://lazka.github.io/pgi-docs/Gdk-3.0/classes/WindowAttr.html https://lazka.github.io/pgi-docs/Gdk-3.0/classes/Geometry.html """ The other useful fields are the min_aspect and max_aspect fields; these contain a width/height ratio as a floating point number. If a geometry widget is set, the aspect applies to the geometry widget rather than the entire window. The most common use of these hints is probably to set min_aspect and max_aspect to the same value, thus forcing the window to keep a constant aspect ratio. """ In a quick Google -- I don't seem to find aspect exposed http://docs.adacore.com/live/wave/gtkada/html/gtkada_rm/index.html other than in Gtk.Aspect_Frame -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/