Ticket URL: <
http://trac.wxwidgets.org/ticket/14294#comment:8>
#14294: wxGrid Render to wxDC method
--------------------------------------+-------------------------------------
Reporter: johnr | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: GUI-generic | Version: 2.9-svn
Keywords: wxGrid Render Print wxDC | Blockedby: 14319, 14319, 14319
Patch: 1 | Blocking:
--------------------------------------+-------------------------------------
Comment(by johnr):
Attached the patch grid.h/cpp.
Tested on Win7 32/64, XP32 100%
OSX-Cocoa 10.7.x see notes below. I do not have a linux platform.
In addition to #13834 on all platforms I have tested there is a problem
with the ClippingRegion for OSX. Any scale != 1 results in the clipping
region being applied with a wrong scaling factor. It can be seen when
using sample menu item "Render setup/Zoom 125%" +/- with "Logical 50 unit
margin" +/- "Render G5:P30".
In the demo I scale to 1.25 but the figures that work for the
ClippingRegion need *1.2 not 1.25. Perhaps a rounding error somewhere but
I haven't found it so far and probably will not be able to look at it
again for 2-3 weeks.
I have left some rectangle draw code in DrawAllGridLines() that can be
used for testing that the passed dimensions are ok and for testing whether
the clipping region is ok. Also a workaround that I use in my own code to
avoid applying the clipregion if userscale != 1. Most of this code is
commented.
More problems with SVN which didn't add one of the functions in grid.h so
I added it manually. Don't know what is going on there either but maybe I
need to move to git.
--
Ticket URL: <
http://trac.wxwidgets.org/ticket/14294#comment:8>