* Event handler to react on page size change in designer

git-svn-id: trunk@38364 -
This commit is contained in:
michael 2018-02-27 16:48:34 +00:00
parent 1cf1ab8ab9
commit a75e25aa46

View File

@ -800,6 +800,7 @@ type
FDataName : String;
FFont: TFPReportFont;
FMargins: TFPReportMargins;
FOnPageSizeChange: TNotifyEvent;
FOrientation: TFPReportPaperOrientation;
FPageSize: TFPReportPageSize;
FReport: TFPCustomReport;
@ -855,6 +856,7 @@ type
property ColumnGap: TFPReportUnits read FColumnGap write SetColumnGap default 0;
property ColumnLayout: TFPReportColumnLayout read FColumnLayout write SetColumnLayout default clVertical;
property Font: TFPReportFont read FFont write SetFont;
Property OnPageSizeChange : TNotifyEvent Read FOnPageSizeChange Write FOnPageSizeChange;
end;
TFPReportCustomPageClass = Class of TFPReportCustomPage;
@ -6776,6 +6778,8 @@ end;
procedure TFPReportCustomPage.PageSizeChanged;
begin
RecalcLayout;
If Assigned(FOnPageSizeChange) then
FOnPageSizeChange(Self);
end;
constructor TFPReportCustomPage.Create(AOwner: TComponent);