virtual void Expand( const wxDataViewItem & item );
virtual void Collapse( const wxDataViewItem & item );
+
+ virtual void SetFocus();
protected:
virtual int GetSelections( wxArrayInt & sel ) const;
virtual void ScrollWindow(int dx, int dy, const wxRect *rect = NULL);
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
+
+ virtual bool AcceptsFocusFromKeyboard() const { return false; }
protected:
virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
void wxDataViewMainWindow::OnChar( wxKeyEvent &event )
{
- if ( HandleAsNavigationKey(event) )
+ if ( GetParent()->HandleAsNavigationKey(event) )
return;
// no item -> nothing to do
AdjustScrollbars();
}
+void wxDataViewCtrl::SetFocus()
+{
+ if (m_clientArea)
+ m_clientArea->SetFocus();
+}
+
bool wxDataViewCtrl::AssociateModel( wxDataViewModel *model )
{
if (!wxDataViewCtrlBase::AssociateModel( model ))