cardhint.pas

来自「亚惠快餐管理信息系统 包括亚惠快餐管理的各项功能」· PAS 代码 · 共 47 行

PAS
47
字号
unit CardHint;

interface

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

type
  TFrmCardHint = class(TForm)
    GroupBox1: TGroupBox;
    Button1: TButton;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

procedure SetWork(BackXx: string; Lx: smallint);
implementation

{$R *.dfm}

procedure SetWork(BackXx: string; Lx: smallint);
var
  FrmCardHint: TFrmCardHint;
begin
  Screen.Cursor := crHourGlass;
  Application.CreateForm(TFrmCardHint, FrmCardHint);
  FrmCardHint.Label1.Caption := Trim(BackXx);
  if Lx = 1 then
    FrmCardHint.Label1.Font.Color := clBlue
  else
    FrmCardHint.Label1.Font.Color := clRed;
  FrmCardHint.Show;
  Screen.Cursor := crDefault;
end;

procedure TFrmCardHint.Button1Click(Sender: TObject);
begin
  Close;
end;

end.

⌨️ 快捷键说明

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