Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/info.pas

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download) (as text)
Sun Feb 22 14:38:06 2015 UTC (9 years ago) by yamat0jp
File MIME type: text/x-pascal
File size: 1502 byte(s)


1 unit info;
2
3 interface
4
5 uses
6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
7 StdCtrls, ExtCtrls;
8
9
10 type
11 TOKBottomDlg = class(TForm)
12 OKBtn: TButton;
13 CancelBtn: TButton;
14 Bevel1: TBevel;
15 Edit1: TEdit;
16 Label1: TLabel;
17 Label2: TLabel;
18 Label3: TLabel;
19 Label4: TLabel;
20 ComboBox1: TComboBox;
21 CheckBox1: TCheckBox;
22 CheckBox2: TCheckBox;
23 Shape1: TShape;
24 ColorDialog1: TColorDialog;
25 ScrollBar1: TScrollBar;
26 Label5: TLabel;
27 Shape2: TShape;
28 Label6: TLabel;
29 procedure Shape1MouseDown(Sender: TObject; Button: TMouseButton;
30 Shift: TShiftState; X, Y: Integer);
31 procedure Shape2MouseDown(Sender: TObject; Button: TMouseButton;
32 Shift: TShiftState; X, Y: Integer);
33 private
34 { Private éŒž }
35 public
36 { Public éŒž }
37 end;
38
39 var
40 OKBottomDlg: TOKBottomDlg;
41
42 implementation
43
44 {$R *.dfm}
45
46 procedure TOKBottomDlg.Shape1MouseDown(Sender: TObject;
47 Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
48 begin
49 ColorDialog1.Color:=Shape1.Brush.Color;
50 if ColorDialog1.Execute then
51 begin
52 Shape1.Brush.Color:=ColorDialog1.Color;
53 CheckBox1.Checked:=true;
54 end;
55 end;
56
57 procedure TOKBottomDlg.Shape2MouseDown(Sender: TObject;
58 Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
59 begin
60 ColorDialog1.Color:=Shape2.Brush.Color;
61 if ColorDialog1.Execute then
62 Shape2.Brush.Color:=ColorDialog1.Color;
63 end;
64
65 end.
66

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26