From 69d8f6124df7f090e09e37eb1b08a8db8691fbc4 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Wed, 23 Feb 2000 17:53:42 +0000 Subject: [PATCH] Improved checkmark on wxMotif. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 9cd5c03895..2e625da139 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -793,9 +793,9 @@ void wxGridCellBoolEditor::SetSize(const wxRect& r) // the checkbox without label still has some space to the right in wxGTK, // so shift it to the right -#ifdef __WXGTK__ +#if defined(__WXGTK__) || defined (__WXMOTIF__) w -= 8; -#endif // GTK +#endif // GTK && Motif m_control->Move(r.x + r.width/2 - w/2, r.y + r.height/2 - h/2); } @@ -1225,7 +1225,7 @@ wxSize wxGridCellBoolRenderer::GetBestSize(wxGrid& grid, checkSize = size.y + wxGRID_CHECKMARK_MARGIN; // FIXME wxGTK::wxCheckBox::GetBestSize() gives "wrong" result -#ifdef __WXGTK__ +#if defined(__WXGTK__) || defined(__WXMOTIF__) checkSize -= size.y / 2; #endif -- 2.45.2