forked from ivanpirog/vortextracker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
UnloopDlg.pas
45 lines (36 loc) · 845 Bytes
/
UnloopDlg.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
This is part of Vortex Tracker II project
Version 2.0 and later
(c)2017-2021 Ivan Pirog, ivan.pirog@gmail.com
https://github.com/ivanpirog/vortextracker
}
unit UnloopDlg;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls;
type
TUnloopDlg = class(TForm)
Label1: TLabel;
UnloopCount: TEdit;
Label2: TLabel;
UnloopUpDown: TUpDown;
CalcSlides: TCheckBox;
OkBtn: TButton;
CancelBtn: TButton;
procedure UnloopCountKeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
end;
var
UnloopDialog: TUnloopDlg;
implementation
{$R *.dfm}
procedure TUnloopDlg.UnloopCountKeyPress(Sender: TObject; var Key: Char);
begin
if Key in ['0'..'9'] then Exit;
Key := #0;
end;
end.