errorf.pas

来自「delphi4从入门到精通源代码」· PAS 代码 · 共 37 行

PAS
37
字号
unit ErrorF;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, CheckLst, Buttons, Grids;

type
  TErrorsForm = class(TForm)
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    Label1: TLabel;
    StringGrid1: TStringGrid;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  ErrorsForm: TErrorsForm;

implementation

{$R *.DFM}

procedure TErrorsForm.FormCreate(Sender: TObject);
begin
  StringGrid1.Cells [0, 0] := 'Field Name';
  StringGrid1.Cells [1, 0] := 'Old Value';
  StringGrid1.Cells [2, 0] := 'New Value';
end;

end.
 

⌨️ 快捷键说明

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