style, val, name);
}
- ~wxRadioBox();
+ virtual ~wxRadioBox();
bool Create(wxWindow *parent,
wxWindowID id,
virtual bool SetFont(const wxFont& font);
virtual bool ContainsHWND(WXHWND hWnd) const;
- // we inherit a version returning false from wxStaticBox, override it again
- virtual bool AcceptsFocus() const { return true; }
+ // we inherit a version always returning false from wxStaticBox, override
+ // it to behave normally
+ virtual bool AcceptsFocus() const { return wxControl::AcceptsFocus(); }
void SetLabelFont(const wxFont& WXUNUSED(font)) {}
void SetButtonFont(const wxFont& font) { SetFont(font); }
virtual wxString GetLabel() const;
virtual void SetLabel(const wxString& label);
- // we inherit a version returning false from wxStaticBox, override it again
- virtual bool AcceptsFocus() const { return true; }
+ // we inherit a version always returning false from wxStaticBox, override
+ // it to behave normally
+ virtual bool AcceptsFocus() const { return wxControl::AcceptsFocus(); }
#if wxUSE_TOOLTIPS
virtual void DoSetToolTip( wxToolTip *tip );