mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-23 23:22:25 +02:00
* Patch from Pascal Riekenberg to fix multi-column layout
git-svn-id: trunk@37363 -
This commit is contained in:
parent
96aa33cfd9
commit
76a6c67022
@ -263,13 +263,33 @@ begin
|
|||||||
Memo.TextAlignment.Horizontal := taLeftJustified;
|
Memo.TextAlignment.Horizontal := taLeftJustified;
|
||||||
Memo.TextAlignment.Vertical := tlCenter;
|
Memo.TextAlignment.Vertical := tlCenter;
|
||||||
|
|
||||||
|
DataFooter := TFPReportDataFooterBand.Create(p);
|
||||||
|
DataFooter.Layout.Height := 10;
|
||||||
|
DataFooter.Frame.Shape := fsRectangle;
|
||||||
|
DataFooter.Frame.BackgroundColor := TFPReportColor($ffa500);
|
||||||
|
DataFooter.UseParentFont := False;
|
||||||
|
DataFooter.Font.Name := 'LiberationSans-Bold';
|
||||||
|
DataFooter.Font.Color := clWhite;
|
||||||
|
|
||||||
|
Memo := TFPReportMemo.Create(DataFooter);
|
||||||
|
Memo.Layout.Left := 5;
|
||||||
|
Memo.Layout.Top := 1.5;
|
||||||
|
Memo.Layout.Width := 50;
|
||||||
|
Memo.Layout.Height := 8;
|
||||||
|
Memo.Text := 'DataFooter Band';
|
||||||
|
Memo.TextAlignment.Horizontal := taLeftJustified;
|
||||||
|
Memo.TextAlignment.Vertical := tlCenter;
|
||||||
|
|
||||||
DataBand := TFPReportDataBand.Create(p);
|
DataBand := TFPReportDataBand.Create(p);
|
||||||
DataBand.Layout.Height := 10;
|
DataBand.Layout.Height := 10;
|
||||||
DataBand.Data := FDataPage2;
|
DataBand.Data := FDataPage2;
|
||||||
|
DataBand.KeepTogetherWithChildren := False;
|
||||||
DataBand.Frame.Shape := fsRectangle;
|
DataBand.Frame.Shape := fsRectangle;
|
||||||
DataBand.Frame.BackgroundColor := clDataBand;
|
DataBand.Frame.BackgroundColor := clDataBand;
|
||||||
{ associated DataHeader band }
|
{ associated DataHeader band }
|
||||||
DataBand.HeaderBand := DataHeader;
|
DataBand.HeaderBand := DataHeader;
|
||||||
|
{ associated DataFooter band }
|
||||||
|
DataBand.FooterBand := DataFooter;
|
||||||
|
|
||||||
Memo := TFPReportMemo.Create(DataBand);
|
Memo := TFPReportMemo.Create(DataBand);
|
||||||
Memo.Layout.Left := 5;
|
Memo.Layout.Left := 5;
|
||||||
@ -292,23 +312,6 @@ begin
|
|||||||
|
|
||||||
DataBand.ChildBand := ChildBand;
|
DataBand.ChildBand := ChildBand;
|
||||||
|
|
||||||
DataFooter := TFPReportDataFooterBand.Create(p);
|
|
||||||
DataFooter.Layout.Height := 10;
|
|
||||||
DataFooter.Frame.Shape := fsRectangle;
|
|
||||||
DataFooter.Frame.BackgroundColor := TFPReportColor($ffa500);
|
|
||||||
DataFooter.UseParentFont := False;
|
|
||||||
DataFooter.Font.Name := 'LiberationSans-Bold';
|
|
||||||
DataFooter.Font.Color := clWhite;
|
|
||||||
|
|
||||||
Memo := TFPReportMemo.Create(DataFooter);
|
|
||||||
Memo.Layout.Left := 5;
|
|
||||||
Memo.Layout.Top := 1.5;
|
|
||||||
Memo.Layout.Width := 50;
|
|
||||||
Memo.Layout.Height := 8;
|
|
||||||
Memo.Text := 'DataFooter Band';
|
|
||||||
Memo.TextAlignment.Horizontal := taLeftJustified;
|
|
||||||
Memo.TextAlignment.Vertical := tlCenter;
|
|
||||||
|
|
||||||
ColumnFooter := TFPReportColumnFooterBand.Create(p);
|
ColumnFooter := TFPReportColumnFooterBand.Create(p);
|
||||||
ColumnFooter.Layout.Height := 15;
|
ColumnFooter.Layout.Height := 15;
|
||||||
ColumnFooter.Frame.Shape := fsRectangle;
|
ColumnFooter.Frame.Shape := fsRectangle;
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user