zfrm_answeru.pas

来自「专业的评标管理系统」· PAS 代码 · 共 47 行

PAS
47
字号
unit zfrm_answerU;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, jpeg, ExtCtrls;

type
  Tzfrm_answer = class(TForm)
    Label2: TLabel;
    Image1: TImage;
    Edit1: TEdit;
    Button1: TButton;
    Button2: TButton;
    Label1: TLabel;
    procedure Edit1KeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  zfrm_answer: Tzfrm_answer;

implementation

{$R *.DFM}

procedure Tzfrm_answer.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
  //
  If Key=#8 then
  begin
    Exit;
  end;
  If Key in ['0'..'9'] then
  begin
    Exit ;
  end;
  Key := #0 ;
  //
end;

end.

⌨️ 快捷键说明

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