Page 1 of 2

Different looking of wxChoice

Posted: Tue Dec 03, 2019 3:05 am
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).

Re: Different looking of wxChoice

Posted: Tue Dec 03, 2019 3:07 am
by csniper
Magiea 7.1 build with wxWidgets 3.0.4 has the same issue. Any clue of the issue?

Re: Different looking of wxChoice

Posted: Tue Dec 03, 2019 3:12 am
by csniper
Ubuntu

Re: Different looking of wxChoice

Posted: Tue Dec 03, 2019 6:04 am
by csniper
It seemed that I would have to end up with replacing it with wxComboBox.

Re: Different looking of wxChoice

Posted: Tue Dec 03, 2019 11:55 pm
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.

Re: Different looking of wxChoice

Posted: Wed Dec 04, 2019 6:03 am
by csniper
Tried with today's snapshot of wxWidgets. The issue is still there.

Re: Different looking of wxChoice

Posted: Wed Dec 04, 2019 1:49 pm
by ONEEYEMAN
Hi,
Are you using any theme?
What WM do you have?

Thank you.

Re: Different looking of wxChoice

Posted: Thu Dec 05, 2019 2:21 am
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.

Re: Different looking of wxChoice

Posted: Thu Dec 05, 2019 2:31 am
by ONEEYEMAN
Hi,
Does it uses K, GNOME, MATE, etc.?

Thank you.

Re: Different looking of wxChoice

Posted: Thu Dec 05, 2019 6:17 am
by csniper
It uses K.

Re: Different looking of wxChoice

Posted: Thu Dec 05, 2019 1:35 pm
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.

Re: Different looking of wxChoice

Posted: Fri Dec 06, 2019 3:08 am
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.

Re: Different looking of wxChoice

Posted: Fri Dec 06, 2019 3:36 pm
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.

Re: Different looking of wxChoice

Posted: Mon Dec 09, 2019 3:28 am
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.

Re: Different looking of wxChoice

Posted: Mon Dec 09, 2019 3:55 am
by csniper
The sample looks OK. I've no idea now. It should related to the sizer setting.