forked from lmbelo/python4delphi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfmMain.dfm
More file actions
416 lines (416 loc) · 10.2 KB
/
fmMain.dfm
File metadata and controls
416 lines (416 loc) · 10.2 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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
object Main: TMain
Left = 142
Top = 147
Caption = 'Demo 10 : DB with FireDac API'
ClientHeight = 660
ClientWidth = 904
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = True
Position = poScreenCenter
OnDestroy = FormDestroy
OnShow = FormShow
PixelsPerInch = 96
TextHeight = 13
object Splitter1: TSplitter
Left = 0
Top = 496
Width = 904
Height = 7
Cursor = crVSplit
Align = alBottom
ExplicitTop = 289
ExplicitWidth = 688
end
object RichEdit1: TRichEdit
Left = 0
Top = 503
Width = 904
Height = 157
Align = alBottom
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
ParentFont = False
ScrollBars = ssBoth
TabOrder = 0
WordWrap = False
Zoom = 100
end
object Panel6: TPanel
Left = 0
Top = 0
Width = 904
Height = 41
Align = alTop
TabOrder = 1
object Label5: TLabel
Left = 40
Top = 16
Width = 46
Height = 13
Caption = 'Database'
end
object btnSQLTest: TButton
Left = 584
Top = 10
Width = 75
Height = 25
Caption = 'Test'
TabOrder = 0
OnClick = btnSQLTestClick
end
object cobxConnSQLServer: TComboBox
Left = 111
Top = 12
Width = 443
Height = 21
TabOrder = 1
end
end
object PageControl: TPageControl
Left = 0
Top = 41
Width = 904
Height = 455
ActivePage = TabSheet1
Align = alClient
TabOrder = 2
OnChange = PageControlChange
object TabSheet1: TTabSheet
Caption = 'Example 1'
object Splitter7: TSplitter
Left = 497
Top = 0
Height = 427
ExplicitLeft = 1
ExplicitTop = 1
ExplicitHeight = 261
end
object SynEditScript1: TSynEdit
Left = 0
Top = 0
Width = 497
Height = 427
Align = alLeft
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Courier New'
Font.Style = []
Font.Quality = fqClearTypeNatural
TabOrder = 0
UseCodeFolding = False
Gutter.Font.Charset = DEFAULT_CHARSET
Gutter.Font.Color = clWindowText
Gutter.Font.Height = -11
Gutter.Font.Name = 'Courier New'
Gutter.Font.Style = []
Gutter.RightOffset = 15
Gutter.ShowLineNumbers = True
Highlighter = SynPythonSyn
Lines.Strings = (
'')
end
object Panel7: TPanel
Left = 500
Top = 0
Width = 396
Height = 427
Align = alClient
TabOrder = 1
object Label1: TLabel
Left = 10
Top = 34
Width = 379
Height = 65
Caption =
'Example 1 shows you how to create your own TFDTable object and w' +
'ork with it.'#13#10#13#10'Example 2 shows you how to create a TFDTable obj' +
'ect connected to an'#13#10' already created Delphi TFDTable (which' +
' may include calculated fields'#13#10' and the like).'
end
object Label2: TLabel
Left = 10
Top = 126
Width = 372
Height = 52
Caption =
'Example 3 shows you how to connect a Python Table to a Delphi Da' +
'tasource.'#13#10#13#10'Example 4 show you how to create your own TFDQuery ' +
'object and work with it'#13#10
end
object btnExecuteExample1: TButton
Left = 272
Top = 3
Width = 75
Height = 25
Caption = 'Execute'
TabOrder = 0
OnClick = btnExecuteExample1Click
end
end
end
object TabSheet2: TTabSheet
Caption = 'Example 2'
ExplicitLeft = 0
ExplicitTop = 0
ExplicitWidth = 0
ExplicitHeight = 0
object Splitter3: TSplitter
Left = 497
Top = 0
Height = 427
ExplicitLeft = 257
ExplicitHeight = 261
end
object Panel1: TPanel
Left = 500
Top = 0
Width = 90
Height = 427
Align = alLeft
BevelOuter = bvNone
TabOrder = 0
object btnExecuteExample2: TButton
Left = 6
Top = 8
Width = 75
Height = 25
Caption = 'Execute'
TabOrder = 0
OnClick = btnExecuteExample2Click
end
end
object DBGrid1: TDBGrid
Left = 590
Top = 0
Width = 306
Height = 427
Align = alClient
DataSource = dsrcCustomer
TabOrder = 1
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
end
object SynEditScript2: TSynEdit
Left = 0
Top = 0
Width = 497
Height = 427
Align = alLeft
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Courier New'
Font.Style = []
Font.Quality = fqClearTypeNatural
TabOrder = 2
UseCodeFolding = False
Gutter.Font.Charset = DEFAULT_CHARSET
Gutter.Font.Color = clWindowText
Gutter.Font.Height = -11
Gutter.Font.Name = 'Courier New'
Gutter.Font.Style = []
Gutter.ShowLineNumbers = True
Highlighter = SynPythonSyn
Lines.Strings = (
'')
end
end
object TabSheet4: TTabSheet
Caption = 'Example 3'
object Splitter4: TSplitter
Left = 497
Top = 0
Height = 427
ExplicitLeft = 257
ExplicitHeight = 261
end
object Panel3: TPanel
Left = 500
Top = 0
Width = 90
Height = 427
Align = alLeft
BevelOuter = bvNone
TabOrder = 0
object btnExecuteExample3: TButton
Left = 6
Top = 8
Width = 75
Height = 25
Caption = 'Execute'
TabOrder = 0
OnClick = btnExecuteExample3Click
end
end
object DBGrid2: TDBGrid
Left = 590
Top = 0
Width = 306
Height = 427
Align = alClient
DataSource = DataSource2
TabOrder = 1
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
end
object SynEditScript3: TSynEdit
Left = 0
Top = 0
Width = 497
Height = 427
Align = alLeft
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Courier New'
Font.Style = []
Font.Quality = fqClearTypeNatural
TabOrder = 2
UseCodeFolding = False
Gutter.Font.Charset = DEFAULT_CHARSET
Gutter.Font.Color = clWindowText
Gutter.Font.Height = -11
Gutter.Font.Name = 'Courier New'
Gutter.Font.Style = []
Gutter.ShowLineNumbers = True
Highlighter = SynPythonSyn
Lines.Strings = (
'')
end
end
object TabSheet5: TTabSheet
Caption = 'Example 4'
object Splitter2: TSplitter
Left = 497
Top = 0
Height = 427
ExplicitLeft = 257
ExplicitHeight = 261
end
object Panel2: TPanel
Left = 500
Top = 0
Width = 396
Height = 427
Align = alClient
BevelOuter = bvNone
TabOrder = 0
object btnExecuteExample4: TButton
Left = 16
Top = 8
Width = 75
Height = 25
Caption = 'Execute'
TabOrder = 0
OnClick = btnExecuteExample4Click
end
end
object SynEditScript4: TSynEdit
Left = 0
Top = 0
Width = 497
Height = 427
Align = alLeft
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Courier New'
Font.Style = []
Font.Quality = fqClearTypeNatural
TabOrder = 1
UseCodeFolding = False
Gutter.Font.Charset = DEFAULT_CHARSET
Gutter.Font.Color = clWindowText
Gutter.Font.Height = -11
Gutter.Font.Name = 'Courier New'
Gutter.Font.Style = []
Gutter.ShowLineNumbers = True
Highlighter = SynPythonSyn
Lines.Strings = (
'')
Options = [eoAutoIndent, eoDragDropEditing, eoEnhanceEndKey, eoGroupUndo, eoShowScrollHint, eoSmartTabDelete, eoSmartTabs, eoTabsToSpaces, eoTrimTrailingSpaces]
end
end
end
object PythonGUIInputOutput: TPythonGUIInputOutput
UnicodeIO = True
RawOutput = False
Output = RichEdit1
Left = 88
Top = 240
end
object modDBFireDac: TPythonModule
Engine = PythonEngine
OnInitialization = modDBFireDacInitialization
ModuleName = 'DBFireDac'
Errors = <>
Left = 192
Top = 240
end
object dsrcCustomer: TDataSource
DataSet = tblCustomer
Left = 432
Top = 120
end
object DataSource2: TDataSource
Left = 432
Top = 72
end
object Connection: TFDConnection
Params.Strings = (
'DriverID=SQLite'
'Database=Demo.s3db'
'CharacterSet=UTF8')
LoginPrompt = False
Left = 432
Top = 168
end
object mqSrcTables: TFDMetaInfoQuery
Connection = Connection
TableKinds = [tkTable]
ObjectScopes = [osMy, osOther]
Left = 352
Top = 72
end
object SynPythonSyn: TSynPythonSyn
Options.AutoDetectEnabled = False
Options.AutoDetectLineLimit = 0
Options.Visible = False
Left = 76
Top = 73
end
object PythonEngine: TPythonEngine
IO = PythonGUIInputOutput
Left = 84
Top = 289
end
object tblCustomer: TFDTable
IndexFieldNames = 'CUSTNO'
Connection = Connection
UpdateOptions.UpdateTableName = 'CUSTOMER'
TableName = 'CUSTOMER'
Left = 356
Top = 121
end
object PyDelphiWrapper: TPyDelphiWrapper
Engine = PythonEngine
Module = modDBFireDac
Left = 192
Top = 296
end
end