DrawLabel function of wxClientDc not working in Mac 11 Big Sur.

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
gku1123
In need of some credit
In need of some credit
Posts: 4
Joined: Fri Mar 22, 2019 5:43 am

DrawLabel function of wxClientDc not working in Mac 11 Big Sur.

Post by gku1123 » Thu Sep 24, 2020 6:19 am

Hi,

I am having trouble DrawLabel function of wxClientDc in MAC 11 Big Sur. Other Draw functions are behaving as expected.This is a snippet of my code:

wxClientDC dc(this); //this is a pointer to a wxPanel
wxString objectType(currObjectType, wxConvUTF8);
dc.DrawLabel(_i18n(objectType), wxNullBitmap, wxRect(150, 10, 300, 20));


Any help would be appreciated. I am only facing this issue in Mac11 other versions of Mac are fine.

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

Re: DrawLabel function of wxClientDc not working in Mac 11 Big Sur.

Post by doublemax » Thu Sep 24, 2020 8:36 am

Which wxWidgets version are you using? For OS X 11 you need at least 3.1.4 or the latest version from GIT.
Use the source, Luke!

gku1123
In need of some credit
In need of some credit
Posts: 4
Joined: Fri Mar 22, 2019 5:43 am

Re: DrawLabel function of wxClientDc not working in Mac 11 Big Sur.

Post by gku1123 » Thu Sep 24, 2020 10:05 am

HI,
Thanks for the help. I was on an older version.

Post Reply