Hi,
i saw that wxMenuItem::SetBackgroundColour is only supported under wxMSW port. Does anyone know about a simple alternative?
Best regards,
Heiner
wx 3.1 Cocoa: wxMenuItem::SetBackgroundColour
-
- Earned some good credits
- Posts: 100
- Joined: Sat Oct 26, 2013 11:54 am
Re: wx 3.1 Cocoa: wxMenuItem::SetBackgroundColour
Hi,
Check the menu sample if you can change the color of the menu item.
If it will not work, you can try this.
If it works, please submit a patch which will be included in the next wxWidgets release.
Thank you.
Check the menu sample if you can change the color of the menu item.
If it will not work, you can try this.
If it works, please submit a patch which will be included in the next wxWidgets release.
Thank you.
-
- Earned some good credits
- Posts: 100
- Joined: Sat Oct 26, 2013 11:54 am
Re: wx 3.1 Cocoa: wxMenuItem::SetBackgroundColour
Changing the backgroundcolour is not possible because SetBackgroundColour is not declared for wx 3.1 Cocoa. I checked the link to SO, but i have no real knowledge of cocoa and objective-c. Can i get a handle to the MenuItems NS object and change its color via that handle?Check the menu sample if you can change the color of the menu item.
Thanks,
Heiner
Re: wx 3.1 Cocoa: wxMenuItem::SetBackgroundColour
have you ever seen any OSX application that does this? Apple has pretty strict GUI guidelines and i wouldn't be surprised if changing the background color of a menu was forbidden or at least not recommended.
Use the source, Luke!
-
- Earned some good credits
- Posts: 100
- Joined: Sat Oct 26, 2013 11:54 am
Re: wx 3.1 Cocoa: wxMenuItem::SetBackgroundColour
Good point. I have not seen any app that does this, at least not that i am aware of it. It was introduced in the windows build w/o beeing aware that this is not existent in other platforms. We should re-layout this feature. Maybe also wx could emit a warning when a feature is not existent in other platforms?