You've already forked lazarus-ccr
tvplanit: Avoid duplicate last page in print preview of TaskView. Fix display of page count.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8519 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -428,21 +428,10 @@ procedure TfrmPrintPreview.actMainUpdate(Action: TBasicAction;
|
||||
begin
|
||||
Unused(Action, Handled);
|
||||
|
||||
if VpPrintPreview1.IsFirstPage then begin
|
||||
actFirstPage.Enabled := False;
|
||||
actPrevPage.Enabled := False;
|
||||
end else begin
|
||||
actFirstPage.Enabled := True;
|
||||
actPrevPage.Enabled := True;
|
||||
end;
|
||||
|
||||
if VpPrintPreview1.IsLastPage then begin
|
||||
actLastPage.Enabled := False;
|
||||
actNextPage.Enabled := False;
|
||||
end else begin
|
||||
actLastPage.Enabled := True;
|
||||
actNextPage.Enabled := True;
|
||||
end;
|
||||
actFirstPage.Enabled := not VpPrintPreview1.IsFirstPage;
|
||||
actPrevPage.Enabled := not VpPrintPreview1.IsFirstPage;
|
||||
actNextPage.Enabled := not VpPrintPreview1.IsLastPage;
|
||||
actLastPage.Enabled := not VpPrintPreview1.IsLastPage;
|
||||
end;
|
||||
|
||||
procedure TfrmPrintPreview.actCancelExecute(Sender: TObject);
|
||||
|
Reference in New Issue
Block a user