Different looking of wxChoice

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Different looking of wxChoice

Post by csniper »

I met an issue of weird alignment of text in wxChoice. It is OK on most platforms(Windows 10, Ubuntu 19.10, Fedora 31) . However, the alignment looks wrong on Magiea 7.1(GTK3+, wxWidgets 3.1.X).
Attachments
Magiea 7.1  GTK3+ wxWidgets 3.1.X
Magiea 7.1 GTK3+ wxWidgets 3.1.X
Magiea 7.1.png (10.47 KiB) Viewed 64059 times
Magiea 6 GTK3+ wxWidgets 3.0.4
Magiea 6 GTK3+ wxWidgets 3.0.4
Magiea 6.png (8.1 KiB) Viewed 64059 times
Fedora 31 GTK3+ wxWidgets 3.1.3
Fedora 31 GTK3+ wxWidgets 3.1.3
Fedora 31.png (10.99 KiB) Viewed 64059 times
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper »

Magiea 7.1 build with wxWidgets 3.0.4 has the same issue. Any clue of the issue?
Attachments
Magiea 7.1 wxWidgets 3.0.4.png
Magiea 7.1 wxWidgets 3.0.4.png (11.52 KiB) Viewed 64058 times
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper »

Ubuntu
Attachments
ubuntu 19.10.png
ubuntu 19.10.png (12.18 KiB) Viewed 64058 times
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper »

It seemed that I would have to end up with replacing it with wxComboBox.
Manolo
Can't get richer than this
Can't get richer than this
Posts: 827
Joined: Mon Apr 30, 2012 11:07 pm

Re: Different looking of wxChoice

Post by Manolo »

There has been some recent bug fixes in sizing some controls under GTK+3. Download the last code directly from "git" and recompile wx.
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper »

Tried with today's snapshot of wxWidgets. The issue is still there.
Attachments
Mageia 7.1 Mandriva GTK+3 wxWidgets master.png
Mageia 7.1 Mandriva GTK+3 wxWidgets master.png (14.69 KiB) Viewed 63999 times
wxWidgets-master.png
wxWidgets-master.png (15.03 KiB) Viewed 63999 times
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Different looking of wxChoice

Post by ONEEYEMAN »

Hi,
Are you using any theme?
What WM do you have?

Thank you.
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper »

The issue only happened on Mageia 7.1(based on Mandriva Linux). Ubuntu 19.10/Fedora 31 are both OK.

I'm not sure the theme used. I just installed required libs for building my app while all other things are default.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Different looking of wxChoice

Post by ONEEYEMAN »

Hi,
Does it uses K, GNOME, MATE, etc.?

Thank you.
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper »

It uses K.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Different looking of wxChoice

Post by ONEEYEMAN »

Hi,
What is your GTK version?
It would be nice to know if any theming is involved.
Does other OSes you tried also uses K?

Thank you.
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper »

Others(FC31 and Ubuntu 19.10) used Gnome as default desktop manager. Magiea 7.1 uses K and the GTK version is 3.24.8.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Different looking of wxChoice

Post by ONEEYEMAN »

Hi,
My guess would be that something inside Magea default theme is not right.
Can you install any GTK+ application and see if you have the same issue?
Or try to compile widgets sample and see if it works for you?

Thank you.
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper »

I will try the sample of wxWidgets. It's hard to tell a Choice from a readonly comobox on an app. And I'd changed from wxChoice to wxCombo in my code.
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper »

The sample looks OK. I've no idea now. It should related to the sizer setting.
Attachments
Mageia Linux 7.1 64-bit - Font.png
Mageia Linux 7.1 64-bit - Font.png (56.59 KiB) Viewed 63842 times
Post Reply