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

📄 wsstandardedit.pas

📁 企业ERP管理系统
💻 PAS
字号:
unit WSStandardEdit;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, WSEdit;

type
  TWSStandardEditForm = class(TWSEditForm)
    CancelButton: TButton;
    OKButton: TButton;
    procedure FormKeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
    function Enter: Boolean; override;
    function Edit(const Params: Variant): Boolean; override;
  end;

implementation

{$R *.dfm}

{ TWSStandardEditForm }

function TWSStandardEditForm.Edit(const Params: Variant): Boolean;
begin
 Result := False;
end;

function TWSStandardEditForm.Enter: Boolean;
begin
 Result := False;
end;

procedure TWSStandardEditForm.FormKeyPress(Sender: TObject; var Key: Char);
begin
  inherited;
if key=#13 then
 begin
   key:=#0;
   perform(WM_NEXTDLGCTL,0,0);
 end;
end;

end.

⌨️ 快捷键说明

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