mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 04:18:48 +02:00
LazReport: Add options for new PreviewButtons. Issue #39845, patch by michalgw.
This commit is contained in:
parent
0bd2462114
commit
62e33c59a2
@ -9987,7 +9987,8 @@ begin
|
||||
FShowProgress := True;
|
||||
FModalPreview := True;
|
||||
FModifyPrepared := True;
|
||||
FPreviewButtons := [pbZoom, pbLoad, pbSave, pbPrint, pbFind, pbHelp, pbExit];
|
||||
FPreviewButtons := [pbZoom, pbLoad, pbSave, pbPrint, pbFind, pbHelp, pbExit,
|
||||
pbSettings, pbPageSetup];
|
||||
FInitialZoom := pzDefault;
|
||||
FDefaultCopies := 1;
|
||||
FileName := sUntitled;
|
||||
|
@ -22,7 +22,8 @@ uses
|
||||
type
|
||||
TfrPreviewForm = class;
|
||||
TfrPreviewZoom = (pzDefault, pzPageWidth, pzOnePage, pzTwoPages);
|
||||
TfrPreviewButton = (pbZoom, pbLoad, pbSave, pbPrint, pbFind, pbHelp, pbExit);
|
||||
TfrPreviewButton = (pbZoom, pbLoad, pbSave, pbPrint, pbFind, pbHelp, pbExit,
|
||||
pbSettings, pbPageSetup);
|
||||
TfrPreviewButtons = set of TfrPreviewButton;
|
||||
|
||||
{ TfrPreview }
|
||||
@ -705,6 +706,8 @@ begin
|
||||
LoadBtn.Visible := pbLoad in TfrReport(Doc).PreviewButtons;
|
||||
PrintBtn.Visible := pbPrint in TfrReport(Doc).PreviewButtons;
|
||||
ExitBtn.Visible := pbExit in TfrReport(Doc).PreviewButtons;
|
||||
SettingsBtn.Visible := pbSettings in TfrReport(Doc).PreviewButtons;
|
||||
PageSetupBtn.Visible := pbPageSetup in TfrReport(Doc).PreviewButtons;
|
||||
if not ZoomBtn.Visible then
|
||||
frTBSeparator1.Hide;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user