Are we not able to set wxbutton size on Mac?

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.
Post Reply
t_wangda
In need of some credit
In need of some credit
Posts: 6
Joined: Thu Apr 09, 2020 8:40 am

Are we not able to set wxbutton size on Mac?

Post by t_wangda » Mon Apr 27, 2020 5:59 am

The title reflects my question.

I set width to 40 for this button but on Mac it turns out as this. There are weird shadow around instead of expanding the whole button size to fill that size. I am using Mac Catalina and wxWidgets 3.1.3.
Attachments
button.png
button.png (32.73 KiB) Viewed 262 times

User avatar
doublemax
Moderator
Moderator
Posts: 14969
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Are we not able to set wxbutton size on Mac?

Post by doublemax » Mon Apr 27, 2020 7:25 am

I don't work under OSX so i can't test this, but Apple has very strict user interface guidelines and it's absolutely possible that they don't allow non-standard heights for a button (and other restrictions).
Use the source, Luke!

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

Re: Are we not able to set wxbutton size on Mac?

Post by ONEEYEMAN » Mon Apr 27, 2020 1:48 pm

Hi,
Why are you not using sizers?
When you do, you will be able to try and set the EXPAND flag and stretch option...

Thank you.

User avatar
doublemax
Moderator
Moderator
Posts: 14969
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Are we not able to set wxbutton size on Mac?

Post by doublemax » Mon Apr 27, 2020 1:50 pm

ONEEYEMAN wrote:
Mon Apr 27, 2020 1:48 pm
When you do, you will be able to try and set the EXPAND flag and stretch option...
I don't think this is relevant to the question whether it's actually possible under OSX.
Use the source, Luke!

Post Reply