@@ -2,8 +2,8 @@ object frmMain: TfrmMain
2
2
Left = 0
3
3
Top = 0
4
4
Caption = ' Rhodus IDE'
5
- ClientHeight = 864
6
- ClientWidth = 1397
5
+ ClientHeight = 957
6
+ ClientWidth = 1575
7
7
Color = clBtnFace
8
8
Font.Charset = DEFAULT_CHARSET
9
9
Font.Color = clWindowText
@@ -15,23 +15,35 @@ object frmMain: TfrmMain
15
15
OnCreate = FormCreate
16
16
PixelsPerInch = 144
17
17
TextHeight = 25
18
+ object Splitter2: TSplitter
19
+ Left = 1099
20
+ Top = 86
21
+ Width = 5
22
+ Height = 871
23
+ Margins.Left = 5
24
+ Margins.Top = 5
25
+ Margins.Right = 5
26
+ Margins.Bottom = 5
27
+ Align = alRight
28
+ ExplicitLeft = 1179
29
+ end
18
30
object Panel1: TPanel
19
31
Left = 0
20
32
Top = 0
21
- Width = 1397
33
+ Width = 1575
22
34
Height = 86
23
35
Margins.Left = 5
24
36
Margins.Top = 5
25
37
Margins.Right = 5
26
38
Margins.Bottom = 5
27
39
Align = alTop
28
40
TabOrder = 0
29
- ExplicitWidth = 1383
41
+ ExplicitWidth = 1561
30
42
DesignSize = (
31
- 1397
43
+ 1575
32
44
86 )
33
45
object lblVersion: TLabel
34
- Left = 1181
46
+ Left = 1359
35
47
Top = 18
36
48
Width = 77
37
49
Height = 25
@@ -41,10 +53,9 @@ object frmMain: TfrmMain
41
53
Margins.Bottom = 5
42
54
Anchors = [akTop, akRight]
43
55
Caption = ' lblVersion'
44
- ExplicitLeft = 1026
45
56
end
46
57
object Label1: TLabel
47
- Left = 345
58
+ Left = 454
48
59
Top = 12
49
60
Width = 121
50
61
Height = 25
@@ -55,7 +66,7 @@ object frmMain: TfrmMain
55
66
Caption = ' Sample Scripts:'
56
67
end
57
68
object btnRun: TButton
58
- Left = 125
69
+ Left = 234
59
70
Top = 15
60
71
Width = 97
61
72
Height = 54
@@ -68,7 +79,7 @@ object frmMain: TfrmMain
68
79
OnClick = btnRunClick
69
80
end
70
81
object btnLoad: TButton
71
- Left = 12
82
+ Left = 121
72
83
Top = 15
73
84
Width = 98
74
85
Height = 54
@@ -81,7 +92,7 @@ object frmMain: TfrmMain
81
92
OnClick = btnLoadClick
82
93
end
83
94
object btnClear: TButton
84
- Left = 236
95
+ Left = 345
85
96
Top = 15
86
97
Width = 97
87
98
Height = 54
@@ -94,7 +105,7 @@ object frmMain: TfrmMain
94
105
OnClick = btnClearClick
95
106
end
96
107
object cboExamples: TComboBox
97
- Left = 344
108
+ Left = 453
98
109
Top = 39
99
110
Width = 217
100
111
Height = 33
@@ -107,19 +118,32 @@ object frmMain: TfrmMain
107
118
Text = ' Examples'
108
119
OnChange = cboExamplesChange
109
120
end
121
+ object btnNew: TButton
122
+ Left = 8
123
+ Top = 18
124
+ Width = 97
125
+ Height = 54
126
+ Margins.Left = 8
127
+ Margins.Top = 8
128
+ Margins.Right = 8
129
+ Margins.Bottom = 8
130
+ Caption = ' New'
131
+ TabOrder = 4
132
+ OnClick = mnuNewClick
133
+ end
110
134
end
111
135
object Panel2: TPanel
112
136
Left = 0
113
137
Top = 86
114
138
Width = 278
115
- Height = 778
139
+ Height = 871
116
140
Margins.Left = 5
117
141
Margins.Top = 5
118
142
Margins.Right = 5
119
143
Margins.Bottom = 5
120
144
Align = alLeft
121
145
TabOrder = 1
122
- ExplicitHeight = 771
146
+ ExplicitHeight = 864
123
147
object DirectoryListBox1: TDirectoryListBox
124
148
Left = 1
125
149
Top = 1
@@ -138,7 +162,7 @@ object frmMain: TfrmMain
138
162
Left = 1
139
163
Top = 349
140
164
Width = 276
141
- Height = 428
165
+ Height = 521
142
166
Margins.Left = 5
143
167
Margins.Top = 5
144
168
Margins.Right = 5
@@ -147,26 +171,25 @@ object frmMain: TfrmMain
147
171
ItemHeight = 25
148
172
TabOrder = 1
149
173
OnClick = FileListBox1Click
150
- ExplicitHeight = 421
174
+ ExplicitHeight = 514
151
175
end
152
176
end
153
177
object Panel3: TPanel
154
178
Left = 278
155
179
Top = 86
156
- Width = 1119
157
- Height = 778
180
+ Width = 821
181
+ Height = 871
158
182
Margins.Left = 5
159
183
Margins.Top = 5
160
184
Margins.Right = 5
161
185
Margins.Bottom = 5
162
186
Align = alClient
163
187
TabOrder = 2
164
- ExplicitWidth = 1105
165
- ExplicitHeight = 771
188
+ ExplicitWidth = 901
166
189
object Splitter1: TSplitter
167
190
Left = 1
168
- Top = 413
169
- Width = 1117
191
+ Top = 506
192
+ Width = 819
170
193
Height = 4
171
194
Cursor = crVSplit
172
195
Margins.Left = 5
@@ -175,13 +198,12 @@ object frmMain: TfrmMain
175
198
Margins.Bottom = 5
176
199
Align = alBottom
177
200
ExplicitLeft = 2
178
- ExplicitTop = 290
179
- ExplicitWidth = 1582
201
+ ExplicitWidth = 898
180
202
end
181
203
object moutput: TMemo
182
204
Left = 1
183
- Top = 417
184
- Width = 1117
205
+ Top = 510
206
+ Width = 819
185
207
Height = 360
186
208
Margins.Left = 5
187
209
Margins.Top = 5
@@ -197,14 +219,14 @@ object frmMain: TfrmMain
197
219
ScrollBars = ssBoth
198
220
TabOrder = 0
199
221
StyleElements = [seClient, seBorder]
200
- ExplicitTop = 410
201
- ExplicitWidth = 1103
222
+ ExplicitTop = 503
223
+ ExplicitWidth = 885
202
224
end
203
225
object editor: TMemo
204
226
Left = 1
205
227
Top = 1
206
- Width = 1117
207
- Height = 412
228
+ Width = 819
229
+ Height = 505
208
230
Margins.Left = 5
209
231
Margins.Top = 5
210
232
Margins.Right = 5
@@ -217,18 +239,113 @@ object frmMain: TfrmMain
217
239
Font.Name = ' Fira Code Medium'
218
240
Font.Style = []
219
241
Lines.Strings = (
220
- ' a = 3; b = 6; println ("sum = ", a + b)'
221
- ' print (1)'
222
- ' for x = 1 to 10 do'
223
- ' print (", ", x * x)'
242
+ ' import graphics'
243
+ ' import math'
244
+ ' '
245
+ ' p = graphics.size()'
246
+ ' x = p[0]/2-50; y = p[1]/2-50;'
247
+ ' heading = 45'
248
+ ' '
249
+ ' function forward (distance)'
250
+ ' global x, y'
251
+ ' '
252
+ ' graphics.moveto(x,y)'
253
+ ' radians = heading*math.pi/180'
254
+ ' dx = math.cos (radians) * distance'
255
+ ' dy = math.sin (radians) * distance'
256
+ ' x = x + dx'
257
+ ' y = y + dy'
258
+ ' graphics.lineto(x,y)'
224
259
' end'
225
- ' println()' )
260
+ ' '
261
+ ' graphics.clear()'
262
+ ' graphics.moveto(x,y)'
263
+ ' graphics.lineto(x,y)'
264
+ ' for i = 1 to 12 do'
265
+ ' forward (200)'
266
+ ' heading = heading + 150 '
267
+ ' end' )
226
268
ParentFont = False
227
269
ScrollBars = ssBoth
228
270
TabOrder = 1
229
271
StyleElements = [seClient, seBorder]
230
- ExplicitWidth = 1103
231
- ExplicitHeight = 405
272
+ ExplicitWidth = 885
273
+ ExplicitHeight = 498
274
+ end
275
+ end
276
+ object pnlRight: TPanel
277
+ Left = 1104
278
+ Top = 86
279
+ Width = 471
280
+ Height = 871
281
+ Margins.Left = 5
282
+ Margins.Top = 5
283
+ Margins.Right = 5
284
+ Margins.Bottom = 5
285
+ Align = alRight
286
+ TabOrder = 3
287
+ OnResize = pnlRightResize
288
+ object Splitter3: TSplitter
289
+ Left = 1
290
+ Top = 411
291
+ Width = 469
292
+ Height = 3
293
+ Cursor = crVSplit
294
+ Margins.Left = 5
295
+ Margins.Top = 5
296
+ Margins.Right = 5
297
+ Margins.Bottom = 5
298
+ Align = alBottom
299
+ ExplicitLeft = 4
300
+ ExplicitWidth = 389
301
+ end
302
+ object pnlInfo: TPanel
303
+ Left = 1
304
+ Top = 414
305
+ Width = 469
306
+ Height = 456
307
+ Margins.Left = 5
308
+ Margins.Top = 5
309
+ Margins.Right = 5
310
+ Margins.Bottom = 5
311
+ Align = alBottom
312
+ TabOrder = 0
313
+ ExplicitLeft = -15
314
+ ExplicitTop = 139
315
+ ExplicitWidth = 389
316
+ end
317
+ object pnlImage: TPanel
318
+ Left = 1
319
+ Top = 1
320
+ Width = 469
321
+ Height = 410
322
+ Margins.Left = 5
323
+ Margins.Top = 5
324
+ Margins.Right = 5
325
+ Margins.Bottom = 5
326
+ Align = alClient
327
+ Caption = ' pnlImage'
328
+ TabOrder = 1
329
+ OnResize = pnlRightResize
330
+ ExplicitLeft = 108
331
+ ExplicitTop = 156
332
+ ExplicitWidth = 278
333
+ ExplicitHeight = 62
334
+ object pnlDrawing: TImage
335
+ Left = 1
336
+ Top = 1
337
+ Width = 467
338
+ Height = 408
339
+ Margins.Left = 5
340
+ Margins.Top = 5
341
+ Margins.Right = 5
342
+ Margins.Bottom = 5
343
+ Align = alClient
344
+ ExplicitLeft = 144
345
+ ExplicitTop = 168
346
+ ExplicitWidth = 158
347
+ ExplicitHeight = 158
348
+ end
232
349
end
233
350
end
234
351
object OpenDialog: TOpenDialog
@@ -244,6 +361,10 @@ object frmMain: TfrmMain
244
361
Top = 24
245
362
object File1: TMenuItem
246
363
Caption = ' File'
364
+ object mnuNew: TMenuItem
365
+ Caption = ' New'
366
+ OnClick = mnuNewClick
367
+ end
247
368
object Quit1: TMenuItem
248
369
Caption = ' Open'
249
370
OnClick = Quit1Click
0 commit comments