-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathUnit10.pas
57 lines (46 loc) · 1.79 KB
/
Unit10.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
46
47
48
49
50
51
52
53
54
55
(******************************************************************************)
(* *)
(* Author : Uwe Schächterle (Corpsman) *)
(* *)
(* This file is part of Sudoku *)
(* *)
(* See the file license.md, located under: *)
(* https://github.com/PascalCorpsman/Software_Licenses/blob/main/license.md *)
(* for details about the license. *)
(* *)
(* It is not allowed to change or remove this text from any *)
(* source file of the project. *)
(* *)
(******************************************************************************)
Unit Unit10;
{$MODE ObjFPC}{$H+}
Interface
Uses
SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Printers, LResources;
Type
TForm10 = Class(TForm)
ComboBox1: TComboBox;
Button1: TButton;
Button2: TButton;
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
Label3: TLabel;
ScrollBar1: TScrollBar;
Label4: TLabel;
Procedure Edit1KeyPress(Sender: TObject; Var Key: Char);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
End;
Var
Form10: TForm10;
Implementation
{$R *.lfm}
Procedure TForm10.Edit1KeyPress(Sender: TObject; Var Key: Char);
Begin
If Not (key In ['0'..'9', #8]) Then key := #0;
End;
End.