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
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Mar 13, 2017 8:27 am

Different looking of wxChoice

Post by csniper » Tue Dec 03, 2019 3:05 am

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.png
Magiea 7.1 GTK3+ wxWidgets 3.1.X
Magiea 7.1.png (10.47 KiB) Viewed 254 times
Magiea 6.png
Magiea 6 GTK3+ wxWidgets 3.0.4
Magiea 6.png (8.1 KiB) Viewed 254 times
Fedora 31.png
Fedora 31 GTK3+ wxWidgets 3.1.3
Fedora 31.png (10.99 KiB) Viewed 254 times

csniper
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper » Tue Dec 03, 2019 3:07 am

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 253 times

csniper
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper » Tue Dec 03, 2019 3:12 am

Ubuntu
Attachments
ubuntu 19.10.png
ubuntu 19.10.png (12.18 KiB) Viewed 253 times

csniper
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper » Tue Dec 03, 2019 6:04 am

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: 704
Joined: Mon Apr 30, 2012 11:07 pm

Re: Different looking of wxChoice

Post by Manolo » Tue Dec 03, 2019 11:55 pm

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
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper » Wed Dec 04, 2019 6:03 am

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 194 times
wxWidgets-master.png
wxWidgets-master.png (15.03 KiB) Viewed 194 times

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3580
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Different looking of wxChoice

Post by ONEEYEMAN » Wed Dec 04, 2019 1:49 pm

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

Thank you.

csniper
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper » Thu Dec 05, 2019 2:21 am

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: 3580
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Different looking of wxChoice

Post by ONEEYEMAN » Thu Dec 05, 2019 2:31 am

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

Thank you.

csniper
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper » Thu Dec 05, 2019 6:17 am

It uses K.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3580
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Different looking of wxChoice

Post by ONEEYEMAN » Thu Dec 05, 2019 1:35 pm

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
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper » Fri Dec 06, 2019 3:08 am

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: 3580
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Different looking of wxChoice

Post by ONEEYEMAN » Fri Dec 06, 2019 3:36 pm

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
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper » Mon Dec 09, 2019 3:28 am

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
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Mar 13, 2017 8:27 am

Re: Different looking of wxChoice

Post by csniper » Mon Dec 09, 2019 3:55 am

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 37 times

Post Reply