summaryrefslogtreecommitdiff
path: root/src/reportengine/u_visu.pas
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-08-28 13:38:01 +0100
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-08-28 13:38:01 +0100
commit5e00828842c03d16e74f324a34fff5cf2757311c (patch)
tree0fed2e9e630bb481b020552160f00adfa80359e4 /src/reportengine/u_visu.pas
parent55e69bc624c6548cae1ae241fe75d3403f8d998e (diff)
downloadfpGUI-5e00828842c03d16e74f324a34fff5cf2757311c.tar.xz
pdf: The "preview page" widget (TfpgBevel) is now only created once.
* This fixes the problem where the preview pages appears above other widgets in the preview window.
Diffstat (limited to 'src/reportengine/u_visu.pas')
-rw-r--r--src/reportengine/u_visu.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/reportengine/u_visu.pas b/src/reportengine/u_visu.pas
index 87b6f1b9..5322f56f 100644
--- a/src/reportengine/u_visu.pas
+++ b/src/reportengine/u_visu.pas
@@ -72,6 +72,7 @@ type
L_NumPageSect: TfpgLabel;
L_FromPageSect: TfpgLabel;
L_NbrPageSect: TfpgLabel;
+ Bv_PreviewPage: TfpgBevel;
FPreviewMargin: integer;
procedure FormShow(Sender: TObject);
procedure Bt_CloseClick(Sender: TObject);
@@ -486,6 +487,9 @@ begin
CreateReportImages;
+ Bv_PreviewPage := CreateBevel(self, 0, 0, 50, 50, bsBox, bsRaised);
+ Bv_PreviewPage.BackgroundColor := clWhite;
+
Bv_Command := CreateBevel(Self, 0, 0, Width, 50, bsBox, bsRaised);
Bt_Close := CreateButton(Bv_Command, 10, 10, 26, '', @Bt_CloseClick, 'stdimg.exit');
Bt_Print := CreateButton(Bv_Command, 50, 10, 26, '', @Bt_PrintClick, 'stdimg.print');
@@ -519,6 +523,8 @@ begin
L_NumPageSect := CreateLabel(Bv_Sections, 365, E_NumSect.Top, '-', 30, E_NumSect.Height, taLeftJustify, tlcenter);
L_FromPageSect := CreateLabel(Bv_Sections, 410, E_NumSect.Top, 'of', 30, E_NumSect.Height, taLeftJustify, tlcenter);
L_NbrPageSect := CreateLabel(Bv_Sections, 440, E_NumSect.Top, '-', 30, E_NumSect.Height, taLeftJustify, tlcenter);
+
+ Bv_Visu := Bv_PreviewPage; // assign to global reference variable
end;
destructor TF_Visu.Destroy;