More wxGrid RTL things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3736,7 +3736,8 @@ void wxGridRowLabelWindow::OnPaint( wxPaintEvent& WXUNUSED(event) )
|
||||
|
||||
int x, y;
|
||||
m_owner->CalcUnscrolledPosition( 0, 0, &x, &y );
|
||||
dc.SetDeviceOrigin( 0, -y );
|
||||
wxPoint pt = dc.GetDeviceOrigin();
|
||||
dc.SetDeviceOrigin( pt.x, pt.y-y );
|
||||
|
||||
wxArrayInt rows = m_owner->CalcRowLabelsExposed( GetUpdateRegion() );
|
||||
m_owner->DrawRowLabels( dc, rows );
|
||||
@@ -3806,7 +3807,11 @@ void wxGridColLabelWindow::OnPaint( wxPaintEvent& WXUNUSED(event) )
|
||||
|
||||
int x, y;
|
||||
m_owner->CalcUnscrolledPosition( 0, 0, &x, &y );
|
||||
dc.SetDeviceOrigin( -x, 0 );
|
||||
wxPoint pt = dc.GetDeviceOrigin();
|
||||
if (GetLayoutDirection() == wxLayout_RightToLeft)
|
||||
dc.SetDeviceOrigin( pt.x+x, pt.y );
|
||||
else
|
||||
dc.SetDeviceOrigin( pt.x-x, pt.y );
|
||||
|
||||
wxArrayInt cols = m_owner->CalcColLabelsExposed( GetUpdateRegion() );
|
||||
m_owner->DrawColLabels( dc, cols );
|
||||
|
Reference in New Issue
Block a user