Ignore:
Timestamp:
Nov 28, 2012, 7:44:19 AM (12 years ago)
Author:
chronos
Message:
  • Modified: PrintPreview should use TVectorCanvas instead of raster TCanvas dependent on DPI of printer. But some font function as TextWidth and TextHeight cannot be easily implemented without use of OS API.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PrintPreview/PrintPreview.pas

    r239 r455  
    33 }
    44
    5 unit PrintPreview; 
     5unit PrintPreview;
    66
    77interface
    88
    99uses
    10   UPrintPreview, LazarusPackageIntf;
     10  UPrintPreview, UVectorCanvas, LazarusPackageIntf;
    1111
    1212implementation
    1313
    14 procedure Register; 
     14procedure Register;
    1515begin
    16   RegisterUnit('UPrintPreview', @UPrintPreview.Register); 
    17 end; 
     16  RegisterUnit('UPrintPreview', @UPrintPreview.Register);
     17end;
    1818
    1919initialization
    20   RegisterPackage('PrintPreview', @Register); 
     20  RegisterPackage('PrintPreview', @Register);
    2121end.
Note: See TracChangeset for help on using the changeset viewer.