You've already forked lazarus-ccr
tvplanit: Some speedup of print preview generation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8547 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -10,6 +10,7 @@ object frmPrnFormat: TfrmPrnFormat
|
||||
OnCreate = FormCreate
|
||||
OnShow = FormShow
|
||||
Position = poScreenCenter
|
||||
LCLVersion = '2.3.0.0'
|
||||
object LblFormats: TLabel
|
||||
AnchorSideLeft.Control = Owner
|
||||
AnchorSideTop.Control = Owner
|
||||
|
@ -618,6 +618,8 @@ var
|
||||
E: TVpPrintFormatElementItem;
|
||||
Prn: TVpPrinter;
|
||||
i, Idx: Integer;
|
||||
|
||||
t: TDateTime;
|
||||
begin
|
||||
if LbFormats.ItemIndex = -1 then
|
||||
exit;
|
||||
@ -628,15 +630,17 @@ begin
|
||||
|
||||
Prn.CurFormat := Idx;
|
||||
|
||||
PrintPreview.ControlLink := ControlLink;
|
||||
RebuildPreview;
|
||||
if PrintPreview.ControlLink <> ControlLink then
|
||||
PrintPreview.ControlLink := ControlLink
|
||||
else
|
||||
RebuildPreview;
|
||||
|
||||
for i := 0 to Pred(Prn.PrintFormats.Items[Idx].Elements.Count) do begin
|
||||
E := Prn.PrintFormats.Items[Idx].Elements.Items[i];
|
||||
lbElements.Items.AddObject(E.ElementName, E);
|
||||
end;
|
||||
|
||||
UpdatePreview;
|
||||
//UpdatePreview;
|
||||
|
||||
EnableElementButtons(False);
|
||||
btnNewElement.Enabled := True;
|
||||
|
Reference in New Issue
Block a user