I don't think anylonger that DrawHeaderButton() should

be used for drawing grid row/col buttons. Also, the
   GTK2 port should not waste space per line of wxMSW
   doesn' waste it neither.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-10-15 19:44:39 +00:00
parent 34445cc76d
commit e60022505d
2 changed files with 7 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ extern WXDLLIMPEXP_DATA_ADV(const wxChar) wxGridNameStr[];
// //
#define WXGRID_DEFAULT_NUMBER_ROWS 10 #define WXGRID_DEFAULT_NUMBER_ROWS 10
#define WXGRID_DEFAULT_NUMBER_COLS 10 #define WXGRID_DEFAULT_NUMBER_COLS 10
#ifdef __WXMSW__ #if defined(__WXMSW__) || defined(__WXGTK20__)
#define WXGRID_DEFAULT_ROW_HEIGHT 25 #define WXGRID_DEFAULT_ROW_HEIGHT 25
#else #else
#define WXGRID_DEFAULT_ROW_HEIGHT 30 #define WXGRID_DEFAULT_ROW_HEIGHT 30

View File

@@ -3882,7 +3882,8 @@ void wxGridCornerLabelWindow::OnPaint( wxPaintEvent& WXUNUSED(event) )
GetClientSize( &client_width, &client_height ); GetClientSize( &client_width, &client_height );
// VZ: any reason for this ifdef? (FIXME) // VZ: any reason for this ifdef? (FIXME)
#ifdef __WXGTK__ #if 0
def __WXGTK__
wxRect rect; wxRect rect;
rect.SetX( 1 ); rect.SetX( 1 );
rect.SetY( 1 ); rect.SetY( 1 );
@@ -7798,7 +7799,8 @@ void wxGrid::DrawRowLabel( wxDC& dc, int row )
wxRect rect; wxRect rect;
#ifdef __WXGTK20__ #if 0
def __WXGTK20__
rect.SetX( 1 ); rect.SetX( 1 );
rect.SetY( GetRowTop(row) + 1 ); rect.SetY( GetRowTop(row) + 1 );
rect.SetWidth( m_rowLabelWidth - 2 ); rect.SetWidth( m_rowLabelWidth - 2 );
@@ -7860,7 +7862,8 @@ void wxGrid::DrawColLabel( wxDC& dc, int col )
wxRect rect; wxRect rect;
#ifdef __WXGTK20__ #if 0
def __WXGTK20__
rect.SetX( colLeft + 1 ); rect.SetX( colLeft + 1 );
rect.SetY( 1 ); rect.SetY( 1 );
rect.SetWidth( GetColWidth(col) - 2 ); rect.SetWidth( GetColWidth(col) - 2 );