More RTL work. Now transform m_updateRegion and
do nothing special in IsExposed() since some code may use m_updateRegion directly. Keep untransformed version around for use with GTK clipping in the DC. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6826,6 +6826,14 @@ void wxGrid::OnKeyDown( wxKeyEvent& event )
|
||||
|
||||
if ( !parent->GetEventHandler()->ProcessEvent( keyEvt ) )
|
||||
{
|
||||
if (GetLayoutDirection() == wxLayout_RightToLeft)
|
||||
{
|
||||
if (event.GetKeyCode() == WXK_RIGHT)
|
||||
event.m_keyCode = WXK_LEFT;
|
||||
else if (event.GetKeyCode() == WXK_LEFT)
|
||||
event.m_keyCode = WXK_RIGHT;
|
||||
}
|
||||
|
||||
// try local handlers
|
||||
switch ( event.GetKeyCode() )
|
||||
{
|
||||
@@ -7506,6 +7514,12 @@ void wxGrid::DrawCellHighlight( wxDC& dc, const wxGridCellAttr *attr )
|
||||
rect.width -= penWidth - 1;
|
||||
rect.height -= penWidth - 1;
|
||||
|
||||
#ifdef __WXGTK__
|
||||
// FIXME: why is the rect drawn off-by-one?
|
||||
if ((penWidth == 2) && (GetLayoutDirection() == wxLayout_RightToLeft))
|
||||
rect.x -= 1;
|
||||
#endif
|
||||
|
||||
// Now draw the rectangle
|
||||
// use the cellHighlightColour if the cell is inside a selection, this
|
||||
// will ensure the cell is always visible.
|
||||
|
Reference in New Issue
Block a user