Running WxWidgets 3.0.5 on Big Sur + Xcode
I'm porting a basic application from MSW over to OSX and it's going well however I'm having a hard time matching the colouring properties I am achieving successfully in MSW.
I can see this topic has been covered before but I didn't quite find the answer I was looking for.
I really don't mind that this app wont match any OSX themes and design criteria. It's not for public release and doesn't need to be attractive to OSX users. Part of the functionality is to allow the text to be coloured.
An image of the app in MSW as intended.
I can live without coloured buttons however the wxTextCtrl and wxListBox are more important.
So this doesn't quite work:
Code: Select all
txt0->SetForegroundColour({ 255,255,255 }); //Does not set Text colour
txt0->SetBackgroundColour({ 0,0,0 }); //Does set the BG colour to black.
Code: Select all
//txt0->SetDefaultStyle(wxTextAttr({ 255,255,255 })); //Does not set Text colour
Can this behaviour be overridden? If so, how?
Many thanks, loving wxWidgets otherwise!