-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUnit1.dfm
433 lines (422 loc) · 11.2 KB
/
Unit1.dfm
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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
object IWForm1: TIWForm1
Left = 0
Top = 0
Width = 555
Height = 589
RenderInvisibleControls = True
AllowPageAccess = True
ConnectionMode = cmAny
ExtraHeader.Strings = (
'<script src="//cdn.tinymce.com/4/tinymce.min.js"></script>'
'<script>'
'tinymce.init({ '
' selector:'#39'textarea#IWDBMEMO1'#39', '
' menubar: false,'
' toolbar_items_size: '#39'small'#39','
' plugins: ['
' "advlist link image lists print preview hr anchor",'
' "searchreplace wordcount visualblocks visualchars code inser' +
'tdatetime media nonbreaking",'
' "table contextmenu directionality emoticons template textcol' +
'or paste textcolor colorpicker"'
' ],'
' toolbar1: "bold italic underline strikethrough | alignleft ali' +
'gncenter alignright alignjustify | styleselect formatselect font' +
'sizeselect",'
' toolbar2: "cut copy paste | bullist numlist | outdent indent |' +
' undo redo | link unlink image | code preview print | forecolor ' +
'backcolor | table | subscript superscript | emoticons | ltr rtl ' +
'| visualchars visualblocks",'
' setup : function(ed) {'
' //implements an onChange event in the editor, so it can up' +
'date the hidden field when changed'
' ed.on('#39'change'#39', function(e) {'
' document.getElementById('#39'HIDDEN_TinyMCEHtmlSource'#39').va' +
'lue = ed.getContent();'
' });'
' //implementes an "onLoad" event in the editor, so it can u' +
'pdate the hidden field when content is first loaded'
' ed.once('#39'GetContent'#39', function(e) {'
' document.getElementById('#39'HIDDEN_TinyMCEHtmlSource'#39').va' +
'lue = e.content;'
' });'
' }'
'});'
'</script>')
OnCreate = IWAppFormCreate
Background.Fixed = False
HandleTabs = False
LeftToRight = True
LockUntilLoaded = True
LockOnSubmit = True
ShowHint = True
XPTheme = True
DesignLeft = 8
DesignTop = 8
object IWText1: TIWText
Left = 16
Top = 15
Width = 536
Height = 131
BGColor = clNone
ConvertSpaces = False
Font.Color = clNone
Font.Size = 10
Font.Style = []
FriendlyName = 'IWText1'
Lines.Strings = (
'<p>This sample was created by <a href="mailto:kmerlotti@gmail.co' +
'm" target="_blank">Kelver Merlotti</a>, to show <a href="http://' +
'www.atozed.com/intraweb/" target="_blank">IntraWeb</a> integrati' +
'on with TinyMCE. </p>'
'<p>TinyMCE (Tiny Moxiecode Content Editor) is a platform-indepen' +
'dent web-based JavaScript/HTML WYSIWYG editor control, released ' +
'as open-source software under the LGPL by Ephox. More at <a href' +
'="https://www.tinymce.com/" target="_blank">tinymce.com</a>.</p>'
'<p>Don'#39't forget to take a look at the ExtraHeader form'#39's propert' +
'y, where'#39's the code to enable TinyMCE</p>')
RawText = True
UseFrame = False
WantReturns = True
end
object IWDBGrid1: TIWDBGrid
Left = 16
Top = 152
Width = 529
Height = 161
BorderColors.Color = clNone
BorderColors.Light = clNone
BorderColors.Dark = clNone
BGColor = clNone
BorderSize = 1
BorderStyle = tfDefault
CellPadding = 0
CellSpacing = 0
Font.Color = clNone
Font.Size = 10
Font.Style = []
FrameBuffer = 40
Lines = tlAll
UseFrame = True
UseSize = True
ScrollToCurrentRow = False
Columns = <
item
Alignment = taCenter
BGColor = clNone
DoSubmitValidation = True
Font.Color = clNone
Font.Size = 10
Font.Style = []
Header = False
Height = '0'
ShowHint = True
VAlign = vaMiddle
Visible = True
Width = '50'
Wrap = False
RawText = False
Css = ''
BlobCharLimit = 0
CompareHighlight = hcNone
DataField = 'Id'
Title.Alignment = taCenter
Title.BGColor = clNone
Title.DoSubmitValidation = True
Title.Font.Color = clNone
Title.Font.Size = 10
Title.Font.Style = [fsBold]
Title.Header = False
Title.Height = '0'
Title.ShowHint = True
Title.Text = 'Id'
Title.VAlign = vaMiddle
Title.Visible = True
Title.Width = '0'
Title.Wrap = False
Title.RawText = True
end
item
Alignment = taLeftJustify
BGColor = clNone
DoSubmitValidation = True
Font.Color = clNone
Font.Size = 10
Font.Style = []
Header = False
Height = '0'
ShowHint = True
VAlign = vaMiddle
Visible = True
Width = '0'
Wrap = False
RawText = False
Css = ''
BlobCharLimit = 0
CompareHighlight = hcNone
DataField = 'Title'
Title.Alignment = taCenter
Title.BGColor = clNone
Title.DoSubmitValidation = True
Title.Font.Color = clNone
Title.Font.Size = 10
Title.Font.Style = [fsBold]
Title.Header = False
Title.Height = '0'
Title.ShowHint = True
Title.Text = 'Title'
Title.VAlign = vaMiddle
Title.Visible = True
Title.Width = '0'
Title.Wrap = False
Title.RawText = True
end>
DataSource = DataSource1
FooterRowCount = 0
FriendlyName = 'IWDBGrid1'
FromStart = True
HighlightColor = clNone
HighlightRows = False
Options = [dgShowTitles]
RefreshMode = rmAutomatic
RowLimit = 0
RollOver = False
RowClick = False
RollOverColor = clNone
RowHeaderColor = clNone
RowAlternateColor = clNone
RowCurrentColor = clWebLIGHTYELLOW
TabOrder = -1
end
object IWDBNavigator1: TIWDBNavigator
Left = 355
Top = 319
Width = 120
Height = 28
Confirmations.Delete = 'Are you sure you want to delete this record?'
Confirmations.Post = 'Are you sure you want to update this record?'
Confirmations.Cancel = 'Are you sure you want to cancel your changes to this record?'
DataSource = DataSource1
FriendlyName = 'IWDBNavigator1'
ImageHeight = 24
ImageWidth = 24
VisibleButtons = [nbFirst, nbPrior, nbNext, nbLast]
Orientation = orHorizontal
end
object btnNew: TIWButton
Left = 16
Top = 319
Width = 51
Height = 28
Caption = 'New'
Color = clBtnFace
Font.Color = clNone
Font.Size = 10
Font.Style = []
FriendlyName = 'btnNew'
TabOrder = 1
OnClick = btnNewClick
end
object btnEdit: TIWButton
Left = 70
Top = 319
Width = 51
Height = 28
Caption = 'Edit'
Color = clBtnFace
Font.Color = clNone
Font.Size = 10
Font.Style = []
FriendlyName = 'btnEdit'
TabOrder = 2
OnClick = btnEditClick
end
object btnSave: TIWButton
Left = 124
Top = 319
Width = 51
Height = 28
Caption = 'Save'
Confirmation = 'Save Changes?'
Color = clBtnFace
Font.Color = clNone
Font.Size = 10
Font.Style = []
FriendlyName = 'btnSave'
TabOrder = 3
OnClick = btnSaveClick
end
object btnCancel: TIWButton
Left = 178
Top = 319
Width = 51
Height = 28
Caption = 'Cancel'
Confirmation = 'Discard changes?'
Color = clBtnFace
Font.Color = clNone
Font.Size = 10
Font.Style = []
FriendlyName = 'btnCancel'
TabOrder = 4
OnClick = btnCancelClick
end
object btnResult: TIWButton
Left = 238
Top = 319
Width = 108
Height = 28
Caption = 'See Result'
Color = clBtnFace
Font.Color = clNone
Font.Size = 10
Font.Style = []
FriendlyName = 'btnResult'
TabOrder = 5
OnClick = btnResultClick
end
object IWRegion1: TIWRegion
Left = 16
Top = 353
Width = 529
Height = 56
HorzScrollBar.Visible = False
VertScrollBar.Visible = False
RenderInvisibleControls = True
BorderOptions.NumericWidth = 1
BorderOptions.BorderWidth = cbwNumeric
BorderOptions.Style = cbsNone
BorderOptions.Color = clNone
object IWLabel1: TIWLabel
Left = 11
Top = 11
Width = 22
Height = 16
Font.Color = clNone
Font.Size = 10
Font.Style = []
HasTabOrder = False
FriendlyName = 'IWLabel1'
Caption = 'Id: '
end
object IWDBEdit1: TIWDBEdit
Left = 39
Top = 9
Width = 58
Height = 21
Font.Color = clNone
Font.Size = 10
Font.Style = []
FriendlyName = 'IWDBEdit1'
SubmitOnAsyncEvent = True
TabOrder = 6
AutoEditable = False
DataField = 'Id'
PasswordPrompt = False
DataSource = DataSource1
end
object IWLabel2: TIWLabel
Left = 115
Top = 11
Width = 33
Height = 16
Font.Color = clNone
Font.Size = 10
Font.Style = []
HasTabOrder = False
FriendlyName = 'IWLabel1'
Caption = 'Title:'
end
object IWDBEdit2: TIWDBEdit
Left = 155
Top = 9
Width = 246
Height = 21
Font.Color = clNone
Font.Size = 10
Font.Style = []
FriendlyName = 'IWDBEdit1'
MaxLength = 50
SubmitOnAsyncEvent = True
TabOrder = 7
AutoEditable = False
DataField = 'Title'
PasswordPrompt = False
DataSource = DataSource1
end
object IWLabel3: TIWLabel
Left = 11
Top = 40
Width = 40
Height = 16
Font.Color = clNone
Font.Size = 10
Font.Style = []
HasTabOrder = False
FriendlyName = 'IWLabel1'
Caption = 'HTML:'
end
end
object IWRegion2: TIWRegion
Left = 15
Top = 417
Width = 529
Height = 165
RenderInvisibleControls = True
BorderOptions.NumericWidth = 1
BorderOptions.BorderWidth = cbwNumeric
BorderOptions.Style = cbsNone
BorderOptions.Color = clNone
ClipRegion = False
object IWDBMemo1: TIWDBMemo
Left = 3
Top = 5
Width = 523
Height = 157
BGColor = clNone
Editable = True
Font.Color = clNone
Font.Size = 10
Font.Style = []
InvisibleBorder = False
HorizScrollBar = False
VertScrollBar = True
Required = False
TabOrder = 8
SubmitOnAsyncEvent = True
AutoEditable = False
DataField = 'HTML'
DataSource = DataSource1
FriendlyName = 'IWDBMemo1'
end
end
object FDMemTable1: TFDMemTable
FetchOptions.AssignedValues = [evMode]
FetchOptions.Mode = fmAll
ResourceOptions.AssignedValues = [rvPersistent, rvSilentMode]
ResourceOptions.Persistent = True
ResourceOptions.SilentMode = True
ResourceOptions.PersistentFileName = 'data.bin'
UpdateOptions.AssignedValues = [uvCheckRequired, uvAutoCommitUpdates]
UpdateOptions.CheckRequired = False
UpdateOptions.AutoCommitUpdates = True
Left = 104
Top = 216
object FDMemTable1Id: TIntegerField
FieldName = 'Id'
end
object FDMemTable1Title: TStringField
FieldName = 'Title'
Size = 50
end
object FDMemTable1HTML: TStringField
FieldName = 'HTML'
Size = 1000
end
end
object DataSource1: TDataSource
DataSet = FDMemTable1
Left = 184
Top = 216
end
end