#if defined(__WXGTK20__)
// for testing
- // #define wxUSE_GENERICDATAVIEWCTRL 1
+ #define wxUSE_GENERICDATAVIEWCTRL 1
#elif defined(__WXMAC__)
#else
#define wxUSE_GENERICDATAVIEWCTRL 1
return wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT);
}
- //void EnsureVisible( unsigned int row );
wxRect GetLineRect( unsigned int row ) const;
//Some useful functions for row and item mapping
&client_size.x, &client_size.y );
//we should deal with the pixel here
- unsigned int row = (client_size.y)/m_lineHeight;
- if( client_size.y % m_lineHeight < m_lineHeight/2 )
- row -= 1;
+ unsigned int row = ((client_size.y)/m_lineHeight) - 1;
return wxMin( GetRowCount()-1, row );
}