Re: Updating compatibility question

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Fri, 25 Oct 2024 13:50:00 -0700 (PDT) Gerry Glauser wrote:

GG> Starting to move to a new OS version, and rebuilt several old wxwidgets 
GG> apps. They all seem to run, but some of the simple fields are not visible, 
GG> and may  be positioned outside the dialog frame.

 It's difficult to say anything concrete without knowing what these fields
are, but the natural question to ask would be how do you set the initial
size of the frame? For example, the size of wxSpinButton is much bigger
with GTK 3 than with GTK 2, so if you hard coded some size for it before,
it would explain why it doesn't fit any more.

GG> All that's visible does seem to work. As you can see below, 3 things have 
GG> changed. I'm hoping somebody's run into this and knows which one's the 
GG> issue.
GG> 
GG> wxwidgets 3.2.1 (gtk2) -> 3.2.4 (gtk3)
GG> Ubuntu 22.04 -> 24.04

 Of those, the switch from GTK 2 to GTK 3 is by far the most important one
and I'm almost certain that if you use GTK 3 with wx 3.2.1 under Ubuntu
22.04 you would see the same problems.

GG> On exiting a dialog, below come to stderr, only on the new system:
GG> 
GG> (library:18107): Gtk-WARNING **: 14:37:35.671: Negative content width -17 
GG> (allocation 1, extents 9x9) while allocating gadget (node entry, owner 
GG> GtkEntry)
GG> 
GG> (library:18107): Gtk-WARNING **: 14:37:35.671: Negative content height -1 
GG> (allocation 1, extents 1x1) while allocating gadget (node entry, owner 
GG> GtkEntry)

 This just means that there is not enough space for everything, which is
something you see anyhow, but it doesn't really help to understand why does
this happen.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZxzkFQAKCRAG6kHeT2we
hrtpAJwL+TsENpZ2kdYir7Uwh3QJVgvVeQCdF13LIkrMPW2N04VKWiEhtmSdrvw=
=BN5K
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.