Improved checkmark on wxMotif.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis 2000-02-23 17:53:42 +00:00
parent 809934d22a
commit 69d8f6124d

View File

@ -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