Page 1 of 1

wxStaticBox on Mac shows "Title" even when label is set to empty

Posted: Sat Aug 25, 2018 12:15 pm
by deepti
Hi All,

wxStaticBox on Mac shows "Title" even when it's label is set to "".
But on Windows, this problem is not seen.
How can i get rid of this?

Please help!

Re: wxStaticBox on Mac shows "Title" even when label is set to empty

Posted: Sat Aug 25, 2018 12:39 pm
by PB
Which wxWidgets version are you using? It seems same as this bug which has supposedly been fixed long time ago (at least in the 3.1 branch)?

Re: wxStaticBox on Mac shows "Title" even when label is set to empty

Posted: Sat Aug 25, 2018 4:28 pm
by deepti
Thanks for your reply @PB.
I am using the 3.1.0 version of wxWidgets, and yet see this issue.
Should i be using the GIT repo of 3.1.0 for the fix ?
Please let me know

Re: wxStaticBox on Mac shows "Title" even when label is set to empty

Posted: Sat Aug 25, 2018 4:52 pm
by PB
wxWidgets 3.1.0 was released on Feb 29, 2016; the code supposed to fix the issue was commited on Apr 29, 2016.

So I guess it should be fixed in 3.1.1 and newer...

Re: wxStaticBox on Mac shows "Title" even when label is set to empty

Posted: Mon Aug 27, 2018 10:32 am
by deepti
I just used the code in the patch and it worked.. Thanks a lot!

Re: wxStaticBox on Mac shows "Title" even when label is set to empty

Posted: Mon Aug 27, 2018 10:35 am
by PB
OK, but I would advise switching to the last relase of the 3.1 branch, either 3.1.1 (officially released) or the GIT master. Patching the library, particularly when not needed, may not be the best future-proof way.

BTW, if possible, please mark the solved threads as such, so it is clear there are closed. There should be a button for this in the posts and you should click it for the post that helped most solving the issue.