hkerror.pas

来自「Delphi 开发的的热键操作 很值得看的」· PAS 代码 · 共 42 行

PAS
42
字号
unit hkError;

interface

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

type
  TfrmHotkeyError = class(TForm)
    lblHotkeyUsed: TLabel;
    btnCancel: TButton;
    btnOk: TButton;
    lblEntry: TLabel;
    lblDescription: TLabel;
  private
    procedure SetConflictingEntry(Value: String);
    procedure SetDescription(Value: String);
  public
    property ConflictingEntry: String write SetConflictingEntry;
    property Description: String write SetDescription;
    { Public declarations }
  end;

var
  frmHotkeyError: TfrmHotkeyError;

implementation

{$R *.DFM}
procedure TfrmHotkeyError.SetConflictingEntry(Value: String);
begin
  lblEntry.Caption := Value;
end;

procedure TfrmHotkeyError.SetDescription(Value: String);
begin
  lblDescription.Caption := Value;
end;

end.

⌨️ 快捷键说明

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