Closed kryslt closed 9 years ago
Original comment by Tomas Krysl (Bitbucket: tomkrysl, GitHub: kryslt).
Well, I didn't make that by default because existing controls (KGrid, KHexEditor) use their own clipping region. Some descendant controls could be programmed without clipping region. Please use TranslateRectToDevice and SelectClipRect functions in your Paintpage method if you need clipping, as you did in Helpers.pas.
Original report by Marek Mauder (Bitbucket: galfar, GitHub: galfar).
It would be nice if print preview set clipping rect of the canvas to page area by default (before calling FControl.PaintPage in TKPrintPageSetup.PaintPageToPreview). This way controls that do not handle clipping correctly would not overflow like this:
Currently it looks like it's a bug in preview viewer when in fact the user's control is to blame.