X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aed0ed3c420d6821e81ca6243482e620c4aeeffd..1a6ed3711fa1c1032b1761c66067bec5558c9b77:/src/generic/gridg.cpp diff --git a/src/generic/gridg.cpp b/src/generic/gridg.cpp index 624cac6ad1..bfd5c3928b 100644 --- a/src/generic/gridg.cpp +++ b/src/generic/gridg.cpp @@ -1417,9 +1417,11 @@ void wxGenericGrid::OnSelectCellImplementation(wxDC *dc, int row, int col) // Probably because of the SetValue?? JS. // 2) Arrrrrgh. This isn't needed anywhere, // of course. One hour of debugging... RR. -#ifndef __WXMSW__ -// HighlightCell(dc); + // Put back for Motif only on advice of Michael Bedward +#ifdef __WXMOTIF__ + HighlightCell(dc); #endif + dc->DestroyClippingRegion(); //OnSelectCell(row, col); @@ -1510,7 +1512,7 @@ void wxGenericGrid::DrawCellText(void) if (!cell) return; - static char szEdit[300]; + static wxChar szEdit[300]; wxClientDC dc(this); dc.BeginDrawing(); @@ -1520,7 +1522,7 @@ void wxGenericGrid::DrawCellText(void) dc.SetBackgroundMode(wxTRANSPARENT); dc.SetBrush(cell->GetBackgroundBrush()); - strcpy(szEdit, m_textItem->GetValue()); + wxStrcpy(szEdit, m_textItem->GetValue()); wxRect rect; rect = m_currentRect; @@ -1529,7 +1531,7 @@ void wxGenericGrid::DrawCellText(void) rect.width -= 5; rect.height -= 4; - DrawTextRect(& dc, " ", &rect, wxLEFT); + DrawTextRect(& dc, _T(" "), &rect, wxLEFT); DrawTextRect(& dc, szEdit, &rect, cell->GetAlignment()); dc.DestroyClippingRegion();