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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
program cursordemo;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes, fpg_base, fpg_main, fpg_form, fpg_panel, fpg_label;
type
TMainForm = class(TfpgForm)
public
{@VFD_HEAD_BEGIN: MainForm}
Panel1: TfpgPanel;
Panel2: TfpgPanel;
Panel3: TfpgPanel;
Panel4: TfpgPanel;
Panel5: TfpgPanel;
Panel6: TfpgPanel;
Panel7: TfpgPanel;
Panel8: TfpgPanel;
Panel9: TfpgPanel;
Panel10: TfpgPanel;
Panel11: TfpgPanel;
Panel12: TfpgPanel;
Panel13: TfpgPanel;
Label1: TfpgLabel;
{@VFD_HEAD_END: MainForm}
procedure AfterCreate; override;
end;
{@VFD_NEWFORM_DECL}
{@VFD_NEWFORM_IMPL}
procedure TMainForm.AfterCreate;
begin
{%region 'Auto-generated GUI code' -fold}
{@VFD_BODY_BEGIN: MainForm}
Name := 'MainForm';
SetPosition(388, 200, 311, 204);
WindowTitle := 'Mouse Cursor Demo';
Hint := '';
WindowPosition := wpOneThirdDown;
Label1 := TfpgLabel.Create(self);
with Label1 do
begin
Name := 'Label1';
SetPosition(20, 4, 256, 16);
Alignment := taCenter;
FontDesc := '#Label2';
Hint := '';
Text := 'Available mouse cursors in fpGUI';
end;
Panel1 := TfpgPanel.Create(self);
with Panel1 do
begin
Name := 'Panel1';
SetPosition(8, 32, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcDefault';
MouseCursor := mcDefault;
end;
Panel2 := TfpgPanel.Create(self);
with Panel2 do
begin
Name := 'Panel2';
SetPosition(108, 32, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcArrow';
MouseCursor := mcArrow;
end;
Panel3 := TfpgPanel.Create(self);
with Panel3 do
begin
Name := 'Panel3';
SetPosition(208, 32, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcCross';
MouseCursor := mcCross;
end;
Panel4 := TfpgPanel.Create(self);
with Panel4 do
begin
Name := 'Panel4';
SetPosition(8, 64, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcIBeam';
MouseCursor := mcIBeam;
end;
Panel5 := TfpgPanel.Create(self);
with Panel5 do
begin
Name := 'Panel5';
SetPosition(108, 64, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcSizeEW';
MouseCursor := mcSizeEW;
end;
Panel6 := TfpgPanel.Create(self);
with Panel6 do
begin
Name := 'Panel6';
SetPosition(208, 64, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcSizeNS';
MouseCursor := mcSizeNS;
end;
Panel7 := TfpgPanel.Create(self);
with Panel7 do
begin
Name := 'Panel7';
SetPosition(8, 96, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcSizeNWSE';
MouseCursor := mcSizeNWSE;
end;
Panel8 := TfpgPanel.Create(self);
with Panel8 do
begin
Name := 'Panel8';
SetPosition(108, 96, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcSizeNESW';
MouseCursor := mcSizeNESW;
end;
Panel9 := TfpgPanel.Create(self);
with Panel9 do
begin
Name := 'Panel9';
SetPosition(208, 96, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcSizeSWNE';
MouseCursor := mcSizeSWNE;
end;
Panel10 := TfpgPanel.Create(self);
with Panel10 do
begin
Name := 'Panel10';
SetPosition(8, 128, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcSizeSENW';
MouseCursor := mcSizeSENW;
end;
Panel11 := TfpgPanel.Create(self);
with Panel11 do
begin
Name := 'Panel11';
SetPosition(108, 128, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcMove';
MouseCursor := mcMove;
end;
Panel12 := TfpgPanel.Create(self);
with Panel12 do
begin
Name := 'Panel12';
SetPosition(208, 128, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcHourGlass';
MouseCursor := mcHourGlass;
end;
Panel13 := TfpgPanel.Create(self);
with Panel13 do
begin
Name := 'Panel13';
SetPosition(8, 160, 92, 24);
FontDesc := '#Grid';
Hint := '';
Text := 'mcHand';
MouseCursor := mcHand;
end;
{@VFD_BODY_END: MainForm}
{%endregion}
end;
procedure MainProc;
var
frm: TMainForm;
begin
fpgApplication.Initialize;
frm := TMainForm.Create(nil);
try
frm.Show;
fpgApplication.Run;
finally
frm.Free;
end;
end;
begin
MainProc;
end.
|