Some problems with wx 3.1.2 and OSX "Mojave"
Posted: Tue May 28, 2019 2:16 pm
Hi everybody.
I have recently "ported" one of my wx Projects that I originally made in 2014 with version 2.8 to the latest 3.1.2 and had to apply a whole lot of adaptations, but eventually got it to work nicely in Windows 7 (still haven't tested with Win10, tho).
The problem is on the Mac. D'oh!
The program compiles and runs, but here's a few issues:
1. all wxStaticBitmap elements to which I have Connected an event handler do not respond to mouse clicks. Here's an example:
2. the text inside some widgets (mostly comboboxes) uses the same color as the foreground color, so if I set a light grey foreground color, it's barely readable if the combobox' background is white. Under Windows, the text in the comboboxes uses a different color than what I set as a foreground color for the frame.
So, my questions are:
1. How can I have a wxStaticBitmap that can respond to mouse clicks in OSX 10.14 (like it does in Windows and used to do as long as I used wx2.?
2. Can I specify two different foreground colors, one for the frame and one for each combobox?
Thanks in advance.
I have recently "ported" one of my wx Projects that I originally made in 2014 with version 2.8 to the latest 3.1.2 and had to apply a whole lot of adaptations, but eventually got it to work nicely in Windows 7 (still haven't tested with Win10, tho).
The problem is on the Mac. D'oh!
The program compiles and runs, but here's a few issues:
1. all wxStaticBitmap elements to which I have Connected an event handler do not respond to mouse clicks. Here's an example:
Code: Select all
bmpCover = new wxStaticBitmap(this, ID_LOGO_BITMAP, Logo_png_to_wx_bitmap(), wxPoint(270, 10), wxDefaultSize, 0 );
bmpCover->Connect( wxEVT_LEFT_DOWN, wxCommandEventHandler( MainWindow::OnMenuAbout), NULL, this );
So, my questions are:
1. How can I have a wxStaticBitmap that can respond to mouse clicks in OSX 10.14 (like it does in Windows and used to do as long as I used wx2.?
2. Can I specify two different foreground colors, one for the frame and one for each combobox?
Thanks in advance.