Componentes.Terceros.DevExp.../official/x.19/ExpressQuantumGrid 5/Demos/Delphi/UnboundModeDemo/UnboundModeDemoFastestSweepers.pas
2007-09-09 11:27:22 +00:00

62 lines
1.6 KiB
ObjectPascal

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.