-
- // controls by default inherit the colours of their parents, if a
- // particular control class doesn't want to do it, it can override
- // ShouldInheritColours() to return false
- virtual bool ShouldInheritColours() const { return true; }
-
-
- // WARNING: this doesn't work for all controls nor all platforms!
- //
- // simulates the event of given type (i.e. wxButton::Command() is just as
- // if the button was clicked)
- virtual void Command(wxCommandEvent &event);
-
- virtual bool SetFont(const wxFont& font);
-
- // wxControl-specific processing after processing the update event
- virtual void DoUpdateWindowUI(wxUpdateUIEvent& event);
+ // this is a helper for the derived class GetClassDefaultAttributes()
+ // implementation: it returns the right colours for the classes which
+ // contain something else (e.g. wxListBox, wxTextCtrl, ...) instead of
+ // being simple controls (such as wxButton, wxCheckBox, ...)
+ static wxVisualAttributes
+ GetCompositeControlsDefaultAttributes(wxWindowVariant variant);