correct tabbing for full keyboard access

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2006-02-09 15:03:51 +00:00
parent e4277538a5
commit 1de4364516
2 changed files with 7 additions and 3 deletions

View File

@ -27,13 +27,12 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase
DECLARE_DYNAMIC_CLASS(wxComboBox)
public:
inline wxComboBox() {}
wxComboBox() ;
virtual ~wxComboBox();
// forward these functions to all subcontrols
virtual bool Enable(bool enable = true);
virtual bool Show(bool show = true);
virtual void SetFocus();
// callback functions
virtual void DelegateTextChanged( const wxString& value );
@ -125,6 +124,7 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase
wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
WX_DECLARE_CONTROL_CONTAINER();
protected:
// override the base class virtuals involved in geometry calculations
virtual wxSize DoGetBestSize() const;
@ -143,6 +143,8 @@ protected:
// the subcontrols
wxComboBoxText* m_text;
wxComboBoxChoice* m_choice;
DECLARE_EVENT_TABLE()
};
#endif

View File

@ -76,7 +76,6 @@ public:
// forward these functions to all subcontrols
virtual bool Enable(bool enable = TRUE);
virtual bool Show(bool show = TRUE);
virtual void SetFocus();
// get the subcontrols
wxTextCtrl *GetText() const { return m_text; }
@ -90,6 +89,8 @@ public:
// number is out of range
bool GetTextValue(int *val) const;
WX_DECLARE_CONTROL_CONTAINER();
protected:
// override the base class virtuals involved into geometry calculations
virtual wxSize DoGetBestSize() const;
@ -104,6 +105,7 @@ private:
wxSpinButton *m_btn;
private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
};