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

📄 unboundmodedemofastestsweepers.pas

📁 DevExpress ExpressQuantumGrid Suite v5.9 Full Source
💻 PAS
字号:
unit UnboundModeDemoFastestSweepers;

interface

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

type
  TUnboundModeDemoFastestSweepersForm = class(TForm)
    lbBeginner: TLabel;
    lbIntermediate: TLabel;
    lbExpert: TLabel;
    lbExpertTime: TLabel;
    lbIntermediateTime: TLabel;
    lbBeginnerTime: TLabel;
    ibExpertName: TLabel;
    lbIntermediateName: TLabel;
    lbBeginnerName: TLabel;
    bntOK: TcxButton;
    btnResetScores: TcxButton;
    procedure btnResetScoresClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  public
    FastestTimesResetted: Boolean;
    function ShowModal: Integer; override;
  end;

var
  UnboundModeDemoFastestSweepersForm: TUnboundModeDemoFastestSweepersForm;

implementation

uses UnboundModeDemoTypes;

{$R *.DFM}

function TUnboundModeDemoFastestSweepersForm.ShowModal: Integer;
begin
  SetFormPosition(Self, 35, 45);
  Result := inherited ShowModal;
end;

procedure TUnboundModeDemoFastestSweepersForm.btnResetScoresClick(Sender: TObject);
begin
  if FastestTimesResetted then Exit;
  FastestTimesResetted := True;
  lbBeginnerTime.Caption := IntToStr(999);
  lbIntermediateTime.Caption := IntToStr(999);
  lbExpertTime.Caption := IntToStr(999);
  lbBeginnerName.Caption := 'Anonymous';
  lbIntermediateName.Caption := 'Anonymous';
  ibExpertName.Caption := 'Anonymous';
end;

procedure TUnboundModeDemoFastestSweepersForm.FormCreate(Sender: TObject);
begin
  FastestTimesResetted := False;
end;

end.

⌨️ 快捷键说明

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