FIX: CheckBox style on MacOS

Change-Id: I54f0c4188288a55d44c510c15efb894b3e9419df
This commit is contained in:
chunmao.guo 2022-08-02 14:05:50 +08:00 committed by Lane.Wei
parent 9d2d28ca62
commit 10c152c40d
3 changed files with 87 additions and 2 deletions

View file

@ -17,9 +17,25 @@ public:
void Rescale();
protected:
virtual State GetNormalState() const wxOVERRIDE;
#ifdef __WXOSX__
virtual bool Enable(bool enable = true) wxOVERRIDE;
#endif
protected:
#ifdef __WXMSW__
virtual State GetNormalState() const wxOVERRIDE;
#endif
#ifdef __WXOSX__
virtual wxBitmap DoGetBitmap(State which) const wxOVERRIDE;
void updateBitmap(wxEvent & evt);
bool m_disable = false;
bool m_hover = false;
bool m_focus = false;
#endif
private:
void update();