-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathunit5.pas
More file actions
50 lines (33 loc) · 751 Bytes
/
unit5.pas
File metadata and controls
50 lines (33 loc) · 751 Bytes
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
Unit Unit5;
{$MODE ObjFPC}{$H+}
Interface
Uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
Type
{ TForm5 }
TForm5 = Class(TForm)
Button1: TButton;
Edit1: TEdit;
Label1: TLabel;
ScrollBar1: TScrollBar;
Procedure FormCreate(Sender: TObject);
Procedure ScrollBar1Change(Sender: TObject);
private
public
End;
Var
Form5: TForm5;
Implementation
{$R *.lfm}
Uses upixeleditor_types;
{ TForm5 }
Procedure TForm5.ScrollBar1Change(Sender: TObject);
Begin
edit1.text := IfThen(ScrollBar1.Position = 0, 'Exakt match', format('%d%%', [ScrollBar1.Position]));
End;
Procedure TForm5.FormCreate(Sender: TObject);
Begin
Caption := 'color match options';
ScrollBar1Change(Nil);
End;
End.