-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmainunit.lfm
More file actions
367 lines (367 loc) · 8.14 KB
/
mainunit.lfm
File metadata and controls
367 lines (367 loc) · 8.14 KB
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
object MainForm: TMainForm
Left = 845
Height = 274
Top = 160
Width = 256
Align = alRight
Anchors = []
BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsSingle
Caption = 'fpcCalc'
ClientHeight = 254
ClientWidth = 256
Color = clGradientInactiveCaption
KeyPreview = True
Menu = CalcMenu
OnCreate = CButtonClick
OnKeyPress = KeyboardInput
Position = poDesktopCenter
LCLVersion = '1.6.0.4'
object ButtonsPanel: TPanel
Left = 0
Height = 208
Top = 48
Width = 256
Align = alCustom
ClientHeight = 208
ClientWidth = 256
TabOrder = 0
object BackspaceButton: TSpeedButton
Left = 48
Height = 25
Top = 8
Width = 88
Align = alCustom
Caption = 'Backspace'
OnClick = BackspaceButtonClick
end
object CEButton: TSpeedButton
Left = 144
Height = 25
Top = 8
Width = 50
Caption = 'CE'
OnClick = CEButtonClick
end
object CButton: TSpeedButton
Left = 198
Height = 25
Top = 8
Width = 50
Caption = 'C'
OnClick = CButtonClick
end
object DigButton7: TSpeedButton
Left = 48
Height = 40
Top = 40
Width = 40
Caption = '7'
OnClick = CommaAndDigitsClick
end
object DigButton8: TSpeedButton
Left = 88
Height = 40
Top = 40
Width = 40
Caption = '8'
OnClick = CommaAndDigitsClick
end
object DigButton9: TSpeedButton
Left = 128
Height = 40
Top = 40
Width = 40
Caption = '9'
OnClick = CommaAndDigitsClick
end
object DivisionButton: TSpeedButton
Left = 168
Height = 40
Top = 40
Width = 40
Caption = '/'
OnClick = ArithmeticButtonsClick
end
object SqrtButton: TSpeedButton
Left = 208
Height = 40
Top = 40
Width = 40
Caption = 'sqrt'
OnClick = SqrtButtonClick
end
object MCButton: TSpeedButton
Left = 7
Height = 32
Top = 8
Width = 33
Caption = 'MC'
OnClick = BufferOperations
end
object PercentButton: TSpeedButton
Left = 208
Height = 40
Top = 80
Width = 40
Caption = '%'
OnClick = PercentButtonClick
end
object MultiplicationButton: TSpeedButton
Left = 168
Height = 40
Top = 80
Width = 40
Caption = '*'
OnClick = ArithmeticButtonsClick
end
object DigButton6: TSpeedButton
Left = 128
Height = 40
Top = 80
Width = 40
Caption = '6'
OnClick = CommaAndDigitsClick
end
object DigButton5: TSpeedButton
Left = 88
Height = 40
Top = 80
Width = 40
Caption = '5'
OnClick = CommaAndDigitsClick
end
object DigButton4: TSpeedButton
Left = 48
Height = 40
Top = 80
Width = 40
Caption = '4'
OnClick = CommaAndDigitsClick
end
object MRButton: TSpeedButton
Left = 7
Height = 40
Top = 40
Width = 33
Caption = 'MR'
OnClick = BufferOperations
end
object ReverseDivisionButton: TSpeedButton
Left = 208
Height = 40
Top = 120
Width = 40
Caption = '1/x'
OnClick = ReverseDivisionButtonClick
end
object MinusButton: TSpeedButton
Left = 168
Height = 40
Top = 120
Width = 40
Caption = '-'
OnClick = ArithmeticButtonsClick
end
object DigButton3: TSpeedButton
Left = 128
Height = 40
Top = 120
Width = 40
Caption = '3'
OnClick = CommaAndDigitsClick
end
object DigButton2: TSpeedButton
Left = 88
Height = 40
Top = 120
Width = 40
Caption = '2'
OnClick = CommaAndDigitsClick
end
object DigButton1: TSpeedButton
Left = 48
Height = 40
Top = 120
Width = 40
Caption = '1'
OnClick = CommaAndDigitsClick
end
object MSButton: TSpeedButton
Left = 7
Height = 40
Top = 80
Width = 33
Caption = 'MS'
OnClick = BufferOperations
end
object CommaButton: TSpeedButton
Left = 128
Height = 40
Top = 160
Width = 40
Caption = ','
OnClick = CommaAndDigitsClick
end
object PlusMinusButton: TSpeedButton
Left = 88
Height = 40
Top = 160
Width = 40
Caption = '+/-'
OnClick = PlusMinusButtonClick
end
object DigButton0: TSpeedButton
Left = 48
Height = 40
Top = 160
Width = 40
Caption = '0'
OnClick = CommaAndDigitsClick
end
object MPlusButton: TSpeedButton
Left = 7
Height = 40
Top = 120
Width = 33
Caption = 'M+'
OnClick = BufferOperations
end
object EqualButton: TSpeedButton
Left = 208
Height = 40
Top = 160
Width = 40
Caption = '='
OnClick = EqualButtonClick
end
object PlusButton: TSpeedButton
Left = 168
Height = 40
Top = 160
Width = 40
Caption = '+'
OnClick = ArithmeticButtonsClick
end
object MMinusButton: TSpeedButton
Left = 7
Height = 40
Top = 160
Width = 33
Caption = 'M-'
OnClick = BufferOperations
end
end
object OutputEdit: TEdit
Left = 7
Height = 23
Top = 24
Width = 240
Alignment = taRightJustify
AutoSize = False
OnEnter = OutputEditEnter
OnExit = OutputEditExit
ReadOnly = True
TabOrder = 1
Text = '0.'
end
object HistoryLabel: TLabel
Left = 101
Height = 15
Top = 8
Width = 146
Alignment = taRightJustify
AutoSize = False
ParentColor = False
end
object BufferLabel: TLabel
Left = 8
Height = 15
Top = 8
Width = 113
AutoSize = False
Caption = 'Buffer: 0'
ParentColor = False
end
object ShortcutsActionList: TActionList
left = 96
top = 192
object CtrlCAction: TAction
Caption = 'Copy'
OnExecute = CtrlCActionExecute
ShortCut = 16451
end
object CtrlVAction: TAction
Caption = 'CtrlVAction'
OnExecute = CtrlVActionExecute
ShortCut = 16470
end
object MMinusAction: TAction
Caption = 'MMinusAction'
OnExecute = MMinusActionExecute
ShortCut = 16465
end
object MPlusAction: TAction
Caption = 'MPlusAction'
OnExecute = MPlusActionExecute
ShortCut = 16464
end
object MSAction: TAction
Caption = 'MSAction'
OnExecute = MSActionExecute
ShortCut = 16461
end
object MRAction: TAction
Caption = 'MRAction'
OnExecute = MRActionExecute
ShortCut = 16466
end
object MCAction: TAction
Caption = 'MCAction'
OnExecute = MCActionExecute
ShortCut = 16460
end
object CEButtonAction: TAction
Caption = 'CEButtonAction'
OnExecute = CEButtonActionExecute
ShortCut = 46
end
object PlusMinusButtonAction: TAction
Caption = 'PlusMinusButtonAction'
OnExecute = PlusMinusButtonActionExecute
ShortCut = 120
end
object ReverseDivisionAction: TAction
Caption = 'ReverseDivisionAction'
OnExecute = ReverseDivisionActionExecute
ShortCut = 82
end
end
object CalcMenu: TMainMenu
left = 136
top = 192
object EditSubMenu: TMenuItem
Caption = 'Edit'
object CopyMenuItem: TMenuItem
Action = CtrlCAction
end
object PasteMenuItem: TMenuItem
Action = CtrlVAction
Caption = 'Paste'
end
end
object HelpSubMenu: TMenuItem
Caption = 'Help'
object HelpMenuItem: TMenuItem
Caption = 'Help'
ShortCut = 112
OnClick = HelpMenuItemClick
end
object AboutMenuItem: TMenuItem
Caption = 'About'
ShortCut = 16496
OnClick = AboutMenuItemClick
end
end
end
end