From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: Gtk ada Sizes in pixels
Date: Thu, 02 Jul 2020 10:23:38 -0400 [thread overview]
Message-ID: <isprff1a47it1dvd0u22chb50vcr8ddtsg@4ax.com> (raw)
In-Reply-To: 5efd6ceb$0$1439$e4fe514c@news.kpn.nl
On Thu, 2 Jul 2020 07:13:15 +0200, ldries46 <bertus.dries@planet.nl>
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/
next prev parent reply other threads:[~2020-07-02 14:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-02 5:13 Gtk ada Sizes in pixels ldries46
2020-07-02 14:23 ` Dennis Lee Bieber [this message]
2020-07-02 15:54 ` ldries46
2020-07-03 9:54 ` ldries46
2020-07-03 16:16 ` Dennis Lee Bieber
2020-07-05 7:24 ` ldries46
2020-09-03 10:31 ` riya patel
2020-09-19 14:09 ` erchetan33
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox