don't return true from wxRadioBox::AcceptsFocus() even when it's hidden/disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -59,7 +59,7 @@ public:
|
|||||||
style, val, name);
|
style, val, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
~wxRadioBox();
|
virtual ~wxRadioBox();
|
||||||
|
|
||||||
bool Create(wxWindow *parent,
|
bool Create(wxWindow *parent,
|
||||||
wxWindowID id,
|
wxWindowID id,
|
||||||
@@ -100,8 +100,9 @@ public:
|
|||||||
virtual bool SetFont(const wxFont& font);
|
virtual bool SetFont(const wxFont& font);
|
||||||
virtual bool ContainsHWND(WXHWND hWnd) const;
|
virtual bool ContainsHWND(WXHWND hWnd) const;
|
||||||
|
|
||||||
// we inherit a version returning false from wxStaticBox, override it again
|
// we inherit a version always returning false from wxStaticBox, override
|
||||||
virtual bool AcceptsFocus() const { return true; }
|
// it to behave normally
|
||||||
|
virtual bool AcceptsFocus() const { return wxControl::AcceptsFocus(); }
|
||||||
|
|
||||||
void SetLabelFont(const wxFont& WXUNUSED(font)) {}
|
void SetLabelFont(const wxFont& WXUNUSED(font)) {}
|
||||||
void SetButtonFont(const wxFont& font) { SetFont(font); }
|
void SetButtonFont(const wxFont& font) { SetFont(font); }
|
||||||
|
@@ -101,8 +101,9 @@ public:
|
|||||||
virtual wxString GetLabel() const;
|
virtual wxString GetLabel() const;
|
||||||
virtual void SetLabel(const wxString& label);
|
virtual void SetLabel(const wxString& label);
|
||||||
|
|
||||||
// we inherit a version returning false from wxStaticBox, override it again
|
// we inherit a version always returning false from wxStaticBox, override
|
||||||
virtual bool AcceptsFocus() const { return true; }
|
// it to behave normally
|
||||||
|
virtual bool AcceptsFocus() const { return wxControl::AcceptsFocus(); }
|
||||||
|
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
virtual void DoSetToolTip( wxToolTip *tip );
|
virtual void DoSetToolTip( wxToolTip *tip );
|
||||||
|
Reference in New Issue
Block a user