Hi,
If m_drawOutsideMargins is set to false for axis layers it would be nice if the axis lines did not extend into the margin.
Simple change, for example in mpScaleX::Plot() instead of:
dc.DrawLine( 0, orgy, extend, orgy);
do:
if (m_drawOutsideMargins == true) dc.DrawLine( 0, orgy, w.GetScrX(), orgy); else dc.DrawLine( w.GetMarginLeft(), orgy, w.GetScrX() - w.GetMarginRight(), orgy);
Similar for mpScaleY.
Cheers
Nigel
Log in to post a comment.
Hi,
If m_drawOutsideMargins is set to false for axis layers it would be nice if the axis lines did not extend into the margin.
Simple change, for example in mpScaleX::Plot() instead of:
dc.DrawLine( 0, orgy, extend, orgy);
do:
if (m_drawOutsideMargins == true)
dc.DrawLine( 0, orgy, w.GetScrX(), orgy);
else
dc.DrawLine( w.GetMarginLeft(), orgy, w.GetScrX() - w.GetMarginRight(), orgy);
Similar for mpScaleY.
Cheers
Nigel