BranchFrm.pas
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:1k
- unit BranchFrm;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls;
- type
- TBranchForm = class(TForm)
- Label1: TLabel;
- EDBranchName: TEdit;
- BTOK: TButton;
- BTCancel: TButton;
- procedure EDBranchNameChange(Sender: TObject);
- procedure EDBranchNameKeyPress(Sender: TObject; var Key: Char);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- BranchForm: TBranchForm;
- implementation
- {$R *.dfm}
- procedure TBranchForm.EDBranchNameChange(Sender: TObject);
- begin
- if Trim(EDBranchName.Text)='' then
- BTOK.Enabled:=False
- else
- BTOK.Enabled:=True;
- end;
- procedure TBranchForm.EDBranchNameKeyPress(Sender: TObject; var Key: Char);
- begin
- if Ord(Key)=Ord('''') then key:=#0;
- end;
- end.