Correct TAB handling for generic wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -444,6 +444,8 @@ public:
|
|||||||
|
|
||||||
virtual void Expand( const wxDataViewItem & item );
|
virtual void Expand( const wxDataViewItem & item );
|
||||||
virtual void Collapse( const wxDataViewItem & item );
|
virtual void Collapse( const wxDataViewItem & item );
|
||||||
|
|
||||||
|
virtual void SetFocus();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual int GetSelections( wxArrayInt & sel ) const;
|
virtual int GetSelections( wxArrayInt & sel ) const;
|
||||||
|
@@ -153,6 +153,8 @@ public:
|
|||||||
virtual void ScrollWindow(int dx, int dy, const wxRect *rect = NULL);
|
virtual void ScrollWindow(int dx, int dy, const wxRect *rect = NULL);
|
||||||
|
|
||||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||||
|
|
||||||
|
virtual bool AcceptsFocusFromKeyboard() const { return false; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
|
virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
|
||||||
@@ -3630,7 +3632,7 @@ void wxDataViewMainWindow::DestroyTree()
|
|||||||
|
|
||||||
void wxDataViewMainWindow::OnChar( wxKeyEvent &event )
|
void wxDataViewMainWindow::OnChar( wxKeyEvent &event )
|
||||||
{
|
{
|
||||||
if ( HandleAsNavigationKey(event) )
|
if ( GetParent()->HandleAsNavigationKey(event) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// no item -> nothing to do
|
// no item -> nothing to do
|
||||||
@@ -4177,6 +4179,12 @@ void wxDataViewCtrl::OnSize( wxSizeEvent &WXUNUSED(event) )
|
|||||||
AdjustScrollbars();
|
AdjustScrollbars();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxDataViewCtrl::SetFocus()
|
||||||
|
{
|
||||||
|
if (m_clientArea)
|
||||||
|
m_clientArea->SetFocus();
|
||||||
|
}
|
||||||
|
|
||||||
bool wxDataViewCtrl::AssociateModel( wxDataViewModel *model )
|
bool wxDataViewCtrl::AssociateModel( wxDataViewModel *model )
|
||||||
{
|
{
|
||||||
if (!wxDataViewCtrlBase::AssociateModel( model ))
|
if (!wxDataViewCtrlBase::AssociateModel( model ))
|
||||||
|
Reference in New Issue
Block a user