typedef void __fastcall (__closure *TPaintPageEvent)(System::TObject* Sender, Vcl::Graphics::TCanvas* Canvas, const System::Types::TRect &PageRect, bool &DoneDrawing);
The TPaintPageEvent class method is called by a number of events that are involved in the painting of the Page Setup Dialog illustrative page image.
Sender is a reference to the calling TPageSetupDialog instance.
Canvas is a reference to the Page Setup Dialog canvas.
PageRect gives the bounds of the item being drawn that resulted in the event.
Set DoneDrawing to true to disable further painting. This results in a blank sample page, with none of the other event handlers being called.