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

📄 stringgridmain.pas

📁 GREATIS Print Suite Pro for Delphi (3-7,2005,2006,2007) and C++ Builder (3-6) Set of components for
💻 PAS
字号:
(*          GREATIS PRINT SUITE                 *)
(*  Copyright (C) 2001-2007 Greatis Software    *)
(*      web: http://www.greatis.com             *)
(*  support: http://www.greatis.com/bteam.html  *)

unit StringGridMain;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  PSJob, PSStatusBar, PSPreview, ExtCtrls, PSToolbar, PJStringGrid, 
  PJTextGrid, Grids;

type
  TMainForm = class(TForm)
    PreviewToolbar: TPreviewToolbar;
    Preview: TPreview;
    PreviewStatusBar: TPreviewStatusBar;
    StringGrid: TStringGrid;
    StringGridPrintJob: TStringGridPrintJob;
    procedure FormCreate(Sender: TObject);
    procedure StringGridColumnMoved(Sender: TObject; FromIndex,
      ToIndex: Integer);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  MainForm: TMainForm;

implementation

{$R *.DFM}

procedure TMainForm.FormCreate(Sender: TObject);
begin
  with StringGrid do
  begin
    Cols[0].Text:=
      'Product'#13#10+
      'Print Suite'#13#10+
      'TFormDesigner'#13#10+
      'WinDowse'#13#10+
      'TCoolorDialog';
    Cols[1].Text:=
      'Description'#13#10+
      'Components for print with preview'#13#10+
      'Run-time form designer'#13#10+
      'Advanced Windows analyser'#13#10+
      'Advanced color dialog component';
  end;
end;

procedure TMainForm.StringGridColumnMoved(Sender: TObject; FromIndex,
  ToIndex: Integer);
begin
  StringGridPrintJob.Update;
end;

end.

⌨️ 快捷键说明

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