⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asprev.pas

📁 delphi的超级好用的表格控件
💻 PAS
字号:
unit asprev;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  ExtCtrls, AdvGrid, Grids;

type
  TPagePreview = class(TForm)
    PaintBox1: TPaintBox;
    procedure PaintBox1Paint(Sender: TObject);
  private
    asg:tAdvStringGrid;
    { Private declarations }
  public
    constructor Create(aOwner:tComponent; aStringGrid:tAdvStringGrid);
    { Public declarations }
  end;

var
  PagePreview: TPagePreview;

implementation

{$R *.DFM}

constructor TPagePreview.Create(aOwner:tComponent; aStringGrid:tAdvStringGrid);
begin
 inherited Create(aOwner);
 asg:=aStringGrid;
end;

procedure TPagePreview.PaintBox1Paint(Sender: TObject);
var
 gr:tgridrect;
begin
 asg.printpreview(paintbox1.canvas,paintbox1.clientrect);
{
 gr.left:=0;
 gr.right:=asg.colcount-1;
 gr.top:=2;
 gr.bottom:=4;

 asg.printpreviewrect(paintbox1.canvas,paintbox1.clientrect,gr);
} 
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -