Project

General

Profile

Revision 59

More missing parts for DataFlex 19.1

View differences:

AppSrc/cComCodeMax.pkg
57 57
Move "19.0" To gsRuntimeVersion
58 58
Use cComCodeMax190.pkg
59 59
#ENDIF
60
#IF (!@=191)
61
Move "19.1" To gsRuntimeVersion
62
Use cComCodeMax191.pkg
63
#ENDIF
60 64

  
61 65
// throw this compiler error here if the compiler version did not match with any of the
62 66
// above includes so that it is clear what is missing.
AppSrc/cComCodeMax191.pkg
1
// DataFlex COM proxy classes generated from .\DataFlex 19.1\Bin\dfedit40.dll
2
Use FlexCom20.pkg
3

  
4

  
5
Define OLEcmLimit for Integer
6
    Define OLEcmMaxFindReplText for 200
7
    Define OLEcmFindReplaceMRUMax for 10
8
    Define OLEcmFindReplaceMRUBuffSize for 2010
9
    Define OLEcmMaxMacros for 10
10
    Define OLEcmMaxCmdString for 50
11
    Define OLEcmMaxCmdDescription for 200
12
    Define OLEcmMaxLanguageName for 100
13
    Define OLEcmMaxTabSize for 100
14
    Define OLEcmMinTabSize for 2
15
    Define OLEcmCmdUserBase for 1000
16

  
17
Define OLEcmCommand for Integer
18
    Define OLEcmCmdNone for 0
19
    Define OLEcmCmdWordUppercase for 100
20
    Define OLEcmCmdWordTranspose for 101
21
    Define OLEcmCmdWordRightExtend for 102
22
    Define OLEcmCmdWordRight for 103
23
    Define OLEcmCmdWordEndRight for 104
24
    Define OLEcmCmdWordEndRightExtend for 105
25
    Define OLEcmCmdWordLowerCase for 106
26
    Define OLEcmCmdWordLeftExtend for 107
27
    Define OLEcmCmdWordLeft for 108
28
    Define OLEcmCmdWordEndLeft for 109
29
    Define OLEcmCmdWordEndLeftExtend for 110
30
    Define OLEcmCmdWordDeleteToStart for 111
31
    Define OLEcmCmdWordDeleteToEnd for 112
32
    Define OLEcmCmdWordCapitalize for 113
33
    Define OLEcmCmdWindowStart for 114
34
    Define OLEcmCmdWindowScrollUp for 115
35
    Define OLEcmCmdWindowScrollToTop for 116
36
    Define OLEcmCmdWindowScrollToCenter for 117
37
    Define OLEcmCmdWindowScrollToBottom for 118
38
    Define OLEcmCmdWindowScrollRight for 119
39
    Define OLEcmCmdWindowScrollLeft for 120
40
    Define OLEcmCmdWindowScrollDown for 121
41
    Define OLEcmCmdWindowRightEdge for 122
42
    Define OLEcmCmdWindowLeftEdge for 123
43
    Define OLEcmCmdWindowEnd for 124
44
    Define OLEcmCmdUppercaseSelection for 125
45
    Define OLEcmCmdUntabifySelection for 126
46
    Define OLEcmCmdUnindentSelection for 127
47
    Define OLEcmCmdUndoChanges for 128
48
    Define OLEcmCmdUndo for 129
49
    Define OLEcmCmdTabifySelection for 130
50
    Define OLEcmCmdSentenceRight for 131
51
    Define OLEcmCmdSentenceLeft for 132
52
    Define OLEcmCmdSentenceCut for 133
53
    Define OLEcmCmdSelectSwapAnchor for 134
54
    Define OLEcmCmdSelectPara for 135
55
    Define OLEcmCmdSelectLine for 136
56
    Define OLEcmCmdSelectAll for 137
57
    Define OLEcmCmdRedoChanges for 138
58
    Define OLEcmCmdRedo for 139
59
    Define OLEcmCmdPaste for 140
60
    Define OLEcmCmdParaUp for 141
61
    Define OLEcmCmdParaDown for 142
62
    Define OLEcmCmdPageUpExtend for 143
63
    Define OLEcmCmdPageUp for 144
64
    Define OLEcmCmdPageDownExtend for 145
65
    Define OLEcmCmdPageDown for 146
66
    Define OLEcmCmdLowercaseSelection for 147
67
    Define OLEcmCmdLineUpExtend for 148
68
    Define OLEcmCmdLineUp for 149
69
    Define OLEcmCmdLineTranspose for 150
70
    Define OLEcmCmdLineStart for 151
71
    Define OLEcmCmdLineOpenBelow for 152
72
    Define OLEcmCmdLineOpenAbove for 153
73
    Define OLEcmCmdLineEndExtend for 154
74
    Define OLEcmCmdLineEnd for 155
75
    Define OLEcmCmdLineDownExtend for 156
76
    Define OLEcmCmdLineDown for 157
77
    Define OLEcmCmdLineDeleteToStart for 158
78
    Define OLEcmCmdLineDeleteToEnd for 159
79
    Define OLEcmCmdLineDelete for 160
80
    Define OLEcmCmdLineCut for 161
81
    Define OLEcmCmdIndentToPrev for 162
82
    Define OLEcmCmdIndentSelection for 163
83
    Define OLEcmCmdHomeExtend for 164
84
    Define OLEcmCmdHome for 165
85
    Define OLEcmCmdGotoMatchBrace for 166
86
    Define OLEcmCmdGotoIndentation for 167
87
    Define OLEcmCmdGotoLine for 168
88
    Define OLEcmCmdFindReplace for 169
89
    Define OLEcmCmdReplace for 170
90
    Define OLEcmCmdReplaceAllInBuffer for 171
91
    Define OLEcmCmdReplaceAllInSelection for 172
92
    Define OLEcmCmdFindPrevWord for 173
93
    Define OLEcmCmdFindPrev for 174
94
    Define OLEcmCmdFindNextWord for 175
95
    Define OLEcmCmdFindNext for 176
96
    Define OLEcmCmdFindMarkAll for 177
97
    Define OLEcmCmdFind for 178
98
    Define OLEcmCmdSetFindText for 179
99
    Define OLEcmCmdSetReplaceText for 180
100
    Define OLEcmCmdTogglePreserveCase for 181
101
    Define OLEcmCmdToggleWholeWord for 182
102
    Define OLEcmCmdToggleCaseSensitive for 183
103
    Define OLEcmCmdEnd for 184
104
    Define OLEcmCmdToggleWhitespaceDisplay for 185
105
    Define OLEcmCmdToggleOvertype for 186
106
    Define OLEcmCmdSetRepeatCount for 187
107
    Define OLEcmCmdDocumentStartExtend for 188
108
    Define OLEcmCmdDocumentStart for 189
109
    Define OLEcmCmdDocumentEndExtend for 190
110
    Define OLEcmCmdDocumentEnd for 191
111
    Define OLEcmCmdDeleteHorizontalSpace for 192
112
    Define OLEcmCmdDeleteBlankLines for 193
113
    Define OLEcmCmdDeleteBack for 194
114
    Define OLEcmCmdDelete for 195
115
    Define OLEcmCmdCutSelection for 196
116
    Define OLEcmCmdCut for 197
117
    Define OLEcmCmdCopy for 198
118
    Define OLEcmCmdCharTranspose for 199
119
    Define OLEcmCmdCharRightExtend for 200
120
    Define OLEcmCmdCharRight for 201
121
    Define OLEcmCmdCharLeftExtend for 202
122
    Define OLEcmCmdCharLeft for 203
123
    Define OLEcmCmdBookmarkToggle for 204
124
    Define OLEcmCmdBookmarkPrev for 205
125
    Define OLEcmCmdBookmarkNext for 206
126
    Define OLEcmCmdBookmarkClearAll for 207
127
    Define OLEcmCmdBookmarkJumpToFirst for 208
128
    Define OLEcmCmdBookmarkJumpToLast for 209
129
    Define OLEcmCmdAppendNextCut for 210
130
    Define OLEcmCmdInsertChar for 211
131
    Define OLEcmCmdNewLine for 212
132
    Define OLEcmCmdRecordMacro for 213
133
    Define OLEcmCmdPlayMacro1 for 214
134
    Define OLEcmCmdPlayMacro2 for 215
135
    Define OLEcmCmdPlayMacro3 for 216
136
    Define OLEcmCmdPlayMacro4 for 217
137
    Define OLEcmCmdPlayMacro5 for 218
138
    Define OLEcmCmdPlayMacro6 for 219
139
    Define OLEcmCmdPlayMacro7 for 220
140
    Define OLEcmCmdPlayMacro8 for 221
141
    Define OLEcmCmdPlayMacro9 for 222
142
    Define OLEcmCmdPlayMacro10 for 223
143
    Define OLEcmCmdProperties for 224
144
    Define OLEcmCmdBeginUndo for 225
145
    Define OLEcmCmdEndUndo for 226
146
    Define OLEcmCmdToggleRegExp for 228
147
    Define OLEcmCmdClearSelection for 229
148
    Define OLEcmCmdRegExpOn for 230
149
    Define OLEcmCmdRegExpOff for 231
150
    Define OLEcmCmdWholeWordOn for 232
151
    Define OLEcmCmdWholeWordOff for 233
152
    Define OLEcmCmdPreserveCaseOn for 234
153
    Define OLEcmCmdPreserveCaseOff for 235
154
    Define OLEcmCmdCaseSensitiveOn for 236
155
    Define OLEcmCmdCaseSensitiveOff for 237
156
    Define OLEcmCmdWhitespaceDisplayOn for 238
157
    Define OLEcmCmdWhitespaceDisplayOff for 239
158
    Define OLEcmCmdOvertypeOn for 240
159
    Define OLEcmCmdOvertypeOff for 241
160
    Define OLEcmCmdToggleSelExtend for 243
161
    Define OLEcmCmdSelExtendOn for 244
162
    Define OLEcmCmdSelExtendOff for 245
163
    Define OLEcmCmdChooseCmd for 246
164
    Define OLEcmCmdMoveLineUp for 247
165
    Define OLEcmCmdMoveLineDown for 248
166
    Define OLEcmCmdLineUpExtendCol for 249
167
    Define OLEcmCmdLineDownExtendCol for 250
168
    Define OLEcmCmdCharLeftExtendCol for 251
169
    Define OLEcmCmdCharRightExtendCol for 252
170
    Define OLEcmCmdSortLinesAscending for 253
171
    Define OLEcmCmdSortLinesDescending for 254
172
    Define OLEcmCmdInsertGUID for 255
173
    Define OLEcmCmdLineDeleteEndSpace for 256
174
    Define OLEcmCmdIncrementalSearch for 257
175
    Define OLEcmCmdReverseIncrementalSearch for 258
176
    Define OLEcmCmdListMembers for 259
177
    Define OLEcmCmdCompleteWord for 260
178
    Define OLEcmCmdCommitMember for 261
179
    Define OLEcmCmdParameterInfo for 262
180
    Define OLEcmCmdQuickInfo for 263
181
    Define OLEcmCmdEndExtend for 264
182
    Define OLEcmCmdCommentSelection for 265
183
    Define OLEcmCmdUncommentSelection for 266
184
    Define OLEcmCmdSelectWord for 267
185

  
186
Define OLEcmCommandErr for Integer
187
    Define OLEcmErrNone for 0
188
    Define OLEcmErrFailure for 1
189
    Define OLEcmErrInput for 2
190
    Define OLEcmErrSelection for 3
191
    Define OLEcmErrNotFound for 4
192
    Define OLEcmErrEmptyBuf for 5
193
    Define OLEcmErrReadOnly for 6
194
    Define OLEcmErrNotAllowed for 7
195
    Define OLEcmErrCanceled for 8
196
    Define OLEcmErrNoLanguage for 9
197
    Define OLEcmErrBadLanguage for 10
198

  
199
Define OLEcmColorItem for Integer
200
    Define OLEcmClrWindow for 0
201
    Define OLEcmClrLeftMargin for 1
202
    Define OLEcmClrBookmark for 2
203
    Define OLEcmClrBookmarkBk for 3
204
    Define OLEcmClrLineNumber for 4
205
    Define OLEcmClrLineNumberBk for 5
206
    Define OLEcmClrHDividerLines for 6
207
    Define OLEcmClrVDividerLines for 7
208
    Define OLEcmClrBraceHighlight for 8
209
    Define OLEcmClrBraceHighlightBk for 9
210

  
211
Define OLEcmFontStyleItem for Integer
212
    Define OLEcmStyLineNumber for 0
213

  
214
Define OLEcmFontStyle for Integer
215
    Define OLEcmFontNormal for 0
216
    Define OLEcmFontBold for 1
217
    Define OLEcmFontItalic for 2
218
    Define OLEcmFontBoldItalic for 3
219
    Define OLEcmFontUnderline for 4
220

  
221
Define OLEcmAutoIndentMode for Integer
222
    Define OLEcmIndentOff for 0
223
    Define OLEcmIndentScope for 1
224
    Define OLEcmIndentPrevLine for 2
225

  
226
Define OLEcmHitTestCode for Integer
227
    Define OLEcmNowhere for 0
228
    Define OLEcmHSplitter for 1
229
    Define OLEcmVSplitter for 2
230
    Define OLEcmHVSplitter for 3
231
    Define OLEcmEditSpace for 4
232
    Define OLEcmHScrollBar for 5
233
    Define OLEcmVScrollBar for 6
234
    Define OLEcmSizeBox for 7
235
    Define OLEcmLeftMargin for 8
236
    Define OLEcmHyperlink for 9
237
    Define OLEcmSelection for 10
238
    Define OLEcmCancelBtn for 11
239
    Define OLEcmProgressBar for 12
240

  
241
Define OLEcmLineNumStyle for Integer
242
    Define OLEcmDecimal for 10
243
    Define OLEcmHexadecimal for 16
244
    Define OLEcmBinary for 2
245
    Define OLEcmOctal for 8
246

  
247
Define OLEcmPrintFlags for Integer
248
    Define OLEcmPrnPromptDlg for 0
249
    Define OLEcmPrnDefaultPrn for 1
250
    Define OLEcmPrnHDC for 2
251
    Define OLEcmPrnRichFonts for 4
252
    Define OLEcmPrnColor for 8
253
    Define OLEcmPrnPageNums for 16
254
    Define OLEcmPrnDateTime for 32
255
    Define OLEcmPrnBorderThin for 64
256
    Define OLEcmPrnBorderThick for 128
257
    Define OLEcmPrnBorderDouble for 256
258
    Define OLEcmPrnSelection for 512
259
    Define OLEcmPrnLineNums for 1024
260

  
261
Define OLEcmBorderStyle for Integer
262
    Define OLEcmBorderNone for 0
263
    Define OLEcmBorderThin for 1
264
    Define OLEcmBorderClient for 2
265
    Define OLEcmBorderStatic for 4
266
    Define OLEcmBorderModal for 8
267
    Define OLEcmBorderCorral for 10
268

  
269
Define OLEcmTokenSetID for Integer
270
    Define OLEcmTsIdUnknown for 0
271
    Define OLEcmTsIdText for 1
272
    Define OLEcmTsIdNumbers for 2
273
    Define OLEcmTsIdKeywords for 3
274
    Define OLEcmTsIdOperators for 4
275
    Define OLEcmTsIdScopeKeywords for 5
276
    Define OLEcmTsIdBlockComments for 6
277
    Define OLEcmTsIdLineComments for 7
278
    Define OLEcmTsIdStrings for 8
279
    Define OLEcmTsIdTagDelimiters for 9
280
    Define OLEcmTsIdCharLiterals for 18
281
    Define OLEcmTsIdTagText for 10
282
    Define OLEcmTsIdTagEntities for 11
283
    Define OLEcmTsIdTagElementNames for 12
284
    Define OLEcmTsIdTagAttributeNames for 13
285
    Define OLEcmTsIdLineNumbers for 14
286
    Define OLEcmTsIdHyperlinks for 15
287
    Define OLEcmTsIdVariables for 16
288
    Define OLEcmTsIdEscapeSeqs for 17
289
    Define OLEcmTsIdIdentifiers for 19
290
    Define OLEcmTsIdAttributeBlocks for 20
291
    Define OLEcmTsIdAttributeKeywordBlocks for 21
292
    Define OLEcmTsIdAttributeText for 22
293
    Define OLEcmTsIdEnvironmentVars for 23
294
    Define OLEcmTsIdCDataDelimiters for 24
295
    Define OLEcmTsIdCDataText for 25
296
    Define OLEcmTsIdSectionHeadings for 26
297
    Define OLEcmTsIdValueNames for 27
298
    Define OLEcmTsIdParameterBlocks for 28
299
    Define OLEcmTsIdArgSeparators for 29
300
    Define OLEcmTsIdWhitespace for 30
301
    Define OLEcmTsIdStatementDelims for 31
302
    Define OLEcmTsIdUserBase for 1000
303

  
304
Define OLEcmTokenSetType for Integer
305
    Define OLEcmTsTypeList for 0
306
    Define OLEcmTsTypeScope for 1
307

  
308
Define OLEcmTokenSubset for Integer
309
    Define OLEcmTsSubsetNone for 0
310
    Define OLEcmTsSubsetFirst for 1
311
    Define OLEcmTsSubsetSecond for 2
312
    Define OLEcmTsSubsetBoth for 3
313

  
314
Define OLEcmSaveFlags for Integer
315
    Define OLEcmSaveAutoFmt for 0
316
    Define OLEcmSaveClearUndoRedo for 1
317
    Define OLEcmSaveMBCS for 16
318
    Define OLEcmSaveUTF8 for 32
319
    Define OLEcmSaveUnicode for 64
320
    Define OLEcmSaveNoBOM for 128
321
    Define OLEcmSaveOEM for 4096
322

  
323
Define OLEcmMouseBtn for Integer
324
    Define OLEcmBtnLeft for 1
325
    Define OLEcmBtnRight for 2
326
    Define OLEcmBtnMiddle for 4
327

  
328
Define OLEcmKeyMod for Integer
329
    Define OLEcmKeyShift for 1
330
    Define OLEcmKeyCtrl for 2
331
    Define OLEcmKeyAlt for 4
332

  
333
Define OLEcmMode for Integer
334
    Define OLEcmModeEdit for 0
335
    Define OLEcmModeConstructing for 1
336
    Define OLEcmModeDestructing for 2
337
    Define OLEcmModeHSplitting for 4
338
    Define OLEcmModeVSplitting for 8
339
    Define OLEcmModePlayMacro for 16
340
    Define OLEcmModeRecordMacro for 32
341
    Define OLEcmModeDragSelecting for 64
342
    Define OLEcmModeLineSelecting for 128
343
    Define OLEcmModeDragAndDrop for 256
344
    Define OLEcmModeIncrementalSearch for 512
345
    Define OLEcmModeListMembers for 1024
346
    Define OLEcmModeParameterInfo for 2048
347

  
348
Define OLEcmMemberImage for Integer
349
    Define OLEcmImgNone for -1
350
    Define OLEcmImgClass for 0
351
    Define OLEcmImgConstant for 1
352
    Define OLEcmImgDelegate for 2
353
    Define OLEcmImgEnum for 3
354
    Define OLEcmImgEnumMember for 4
355
    Define OLEcmImgEvent for 5
356
    Define OLEcmImgException for 6
357
    Define OLEcmImgField for 7
358
    Define OLEcmImgInterface for 8
359
    Define OLEcmImgMacro for 9
360
    Define OLEcmImgMap for 10
361
    Define OLEcmImgMapItem for 11
362
    Define OLEcmImgMethod for 12
363
    Define OLEcmImgOverload for 13
364
    Define OLEcmImgModule for 14
365
    Define OLEcmImgNamespace for 15
366
    Define OLEcmImgOperator for 16
367
    Define OLEcmImgProperty for 17
368
    Define OLEcmImgStruct for 18
369
    Define OLEcmImgTemplate for 19
370
    Define OLEcmImgTypedef for 20
371
    Define OLEcmImgType for 21
372
    Define OLEcmImgUnion for 22
373
    Define OLEcmImgVariable for 23
374
    Define OLEcmImgValueType for 24
375
    Define OLEcmImgIntrinsic for 25
376

  
377
Define OLEcmParseDirection for Integer
378
    Define OLEcmParseDirForward for 0
379
    Define OLEcmParseDirBackward for 1
380

  
381
Define OLEcmParseFlags for Integer
382
    Define OLEcmParseDefault for 0
383
    Define OLEcmParseSkipWhitespace for 1
384
    Define OLEcmParseSkipComments for 2
385

  
386
Define OLEcmProgressFlags for Integer
387
    Define OLEcmProgressNone for 0
388
    Define OLEcmProgressNotify for 1
389
    Define OLEcmProgressShowUI for 2
390
    Define OLEcmProgressAllowCancel for 4
391

  
392
Define OLEcmProgressPhase for Integer
393
    Define OLEcmProgressStart for 0
394
    Define OLEcmProgressUpdate for 1
395
    Define OLEcmProgressEnd for 2
396

  
397
Define OLEcmQueryParamaterBlockResult for Integer
398
    Define OLEcmQueryParameterBlockDefault for 0
399
    Define OLEcmQueryParameterBlockNotFound for 1
400
    Define OLEcmQueryParameterBlockFound for 2
401

  
402
Define OLEcmQueryParamaterPositionResult for Integer
403
    Define OLEcmQueryParameterPositionDefault for 0
404
    Define OLEcmQueryParameterPositionNotFound for 1
405
    Define OLEcmQueryParameterPositionFound for 2
406

  
407
Define OLEcmLoadFlags for Integer
408
    Define OLEcmLoadAutoFmt for 0
409
    Define OLEcmLoadMBCS for 16
410
    Define OLEcmLoadUTF8 for 32
411
    Define OLEcmLoadUnicode for 64
412
    Define OLEcmLoadOEM for 4096
413

  
414
Define OLEcmMemberListStyle for Integer
415
    Define OLEcmMemberSubListTile for 0
416
    Define OLEcmMemberSubListCascade for 1
417
    Define OLEcmMemberListSpaceAllowed for 2
418

  
419
Struct _LARGE_INTEGER
420
    BigInt QuadPart
421
End_Struct
422

  
423
Struct _ULARGE_INTEGER
424
    UBigInt QuadPart
425
End_Struct
426

  
427
Struct _FILETIME
428
    UInteger dwLowDateTime
429
    UInteger dwHighDateTime
430
End_Struct
431

  
432
//Struct GUID
433
    //UInteger Data1
434
    //UShort Data2
435
    //UShort Data3
436
    // Data4  // Bad type member
437
//End_Struct
438

  
439
//Struct tagSTATSTG
440
    // pwcsName  // Bad type member
441
    //UInteger Type
442
    //_ULARGE_INTEGER cbSize
443
    //_FILETIME mtime
444
    //_FILETIME ctime
445
    //_FILETIME atime
446
    //UInteger grfMode
447
    //UInteger grfLocksSupported
448
    // clsid  // Bad type member
449
    //UInteger grfStateBits
450
    //UInteger reserved
451
//End_Struct
452

  
453
// CLSID: {0305218F-24FB-42AB-8DEB-24CB6988F721}
454
// ICodeMax Interface
455
Class cComICodeMax is a Mixin
456

  
457
    // The font used to display code
458
    { MethodType=Property DesignTime=False }
459
    Procedure Set ComFontRef Variant value
460
        Handle hDispatchDriver
461
        Get phDispatchDriver to hDispatchDriver
462
        Send PrepareParams to hDispatchDriver 1
463
        Set ComProperty of hDispatchDriver -512 OLE_VT_DISPATCH to value
464
    End_Procedure
465

  
466
    // The font used to display code
467
    { MethodType=Property DesignTime=False }
468
    Procedure Set ComFont Variant value
469
        Handle hDispatchDriver
470
        Get phDispatchDriver to hDispatchDriver
471
        Send PrepareParams to hDispatchDriver 1
472
        Set ComProperty of hDispatchDriver -512 OLE_VT_DISPATCH to value
473
    End_Procedure
474

  
475
    // The font used to display code
476
    { MethodType=Property DesignTime=False }
477
    Function ComFont Returns Variant
478
        Handle hDispatchDriver
479
        Variant retVal
480
        Get phDispatchDriver to hDispatchDriver
481
        Get InvokeComMethod of hDispatchDriver -512 OLE_VT_DISPATCH to retVal
482
        Function_Return retVal
483
    End_Function
484

  
485
    // The enabled/disabled state of the window
486
    { MethodType=Property DesignTime=False }
487
    Procedure Set ComEnabled Boolean value
488
        Handle hDispatchDriver
489
        Get phDispatchDriver to hDispatchDriver
490
        Send PrepareParams to hDispatchDriver 1
491
        Set ComProperty of hDispatchDriver -514 OLE_VT_BOOL to value
492
    End_Procedure
493

  
494
    // The enabled/disabled state of the window
495
    { MethodType=Property DesignTime=False }
496
    Function ComEnabled Returns Boolean
497
        Handle hDispatchDriver
498
        Boolean retVal
499
        Get phDispatchDriver to hDispatchDriver
500
        Get InvokeComMethod of hDispatchDriver -514 OLE_VT_BOOL to retVal
501
        Function_Return retVal
502
    End_Function
503

  
504
    // The HWND window handle
505
    { MethodType=Property DesignTime=False }
506
    Function ComHWnd Returns Integer
507
        Handle hDispatchDriver
508
        Integer retVal
509
        Get phDispatchDriver to hDispatchDriver
510
        Get InvokeComMethod of hDispatchDriver -515 OLE_VT_I4 to retVal
511
        Function_Return retVal
512
    End_Function
513

  
514
    // The complete contents of the code buffer
515
    { MethodType=Property DesignTime=False }
516
    Procedure Set ComText String value
517
        Handle hDispatchDriver
518
        Get phDispatchDriver to hDispatchDriver
519
        Send PrepareParams to hDispatchDriver 1
520
        Set ComProperty of hDispatchDriver -517 OLE_VT_BSTR to value
521
    End_Procedure
522

  
523
    // The complete contents of the code buffer
524
    { MethodType=Property DesignTime=False }
525
    Function ComText Returns String
526
        Handle hDispatchDriver
527
        String retVal
528
        Get phDispatchDriver to hDispatchDriver
529
        Get InvokeComMethod of hDispatchDriver -517 OLE_VT_BSTR to retVal
530
        Function_Return retVal
531
    End_Function
532

  
533
    // The color syntax highlighting state (on/off)
534
    { MethodType=Property DesignTime=False }
535
    Procedure Set ComColorSyntax Boolean value
536
        Handle hDispatchDriver
537
        Get phDispatchDriver to hDispatchDriver
538
        Send PrepareParams to hDispatchDriver 1
539
        Set ComProperty of hDispatchDriver 0 OLE_VT_BOOL to value
540
    End_Procedure
541

  
542
    // The color syntax highlighting state (on/off)
543
    { MethodType=Property DesignTime=False }
544
    Function ComColorSyntax Returns Boolean
545
        Handle hDispatchDriver
546
        Boolean retVal
547
        Get phDispatchDriver to hDispatchDriver
548
        Get InvokeComMethod of hDispatchDriver 0 OLE_VT_BOOL to retVal
549
        Function_Return retVal
550
    End_Function
551

  
552
    // The 'display whitespace' state (on/off)
553
    { MethodType=Property DesignTime=False }
554
    Procedure Set ComDisplayWhitespace Boolean value
555
        Handle hDispatchDriver
556
        Get phDispatchDriver to hDispatchDriver
557
        Send PrepareParams to hDispatchDriver 1
558
        Set ComProperty of hDispatchDriver 1 OLE_VT_BOOL to value
559
    End_Procedure
560

  
561
    // The 'display whitespace' state (on/off)
562
    { MethodType=Property DesignTime=False }
563
    Function ComDisplayWhitespace Returns Boolean
564
        Handle hDispatchDriver
565
        Boolean retVal
566
        Get phDispatchDriver to hDispatchDriver
567
        Get InvokeComMethod of hDispatchDriver 1 OLE_VT_BOOL to retVal
568
        Function_Return retVal
569
    End_Function
570

  
571
    // The 'convert tabs to spaces' state (on/off)
572
    { MethodType=Property DesignTime=False }
573
    Procedure Set ComExpandTabs Boolean value
574
        Handle hDispatchDriver
575
        Get phDispatchDriver to hDispatchDriver
576
        Send PrepareParams to hDispatchDriver 1
577
        Set ComProperty of hDispatchDriver 2 OLE_VT_BOOL to value
578
    End_Procedure
579

  
580
    // The 'convert tabs to spaces' state (on/off)
581
    { MethodType=Property DesignTime=False }
582
    Function ComExpandTabs Returns Boolean
583
        Handle hDispatchDriver
584
        Boolean retVal
585
        Get phDispatchDriver to hDispatchDriver
586
        Get InvokeComMethod of hDispatchDriver 2 OLE_VT_BOOL to retVal
587
        Function_Return retVal
588
    End_Function
589

  
590
    // The 'smooth scrolling' state (on/off)
591
    { MethodType=Property DesignTime=False }
592
    Procedure Set ComSmoothScrolling Boolean value
593
        Handle hDispatchDriver
594
        Get phDispatchDriver to hDispatchDriver
595
        Send PrepareParams to hDispatchDriver 1
596
        Set ComProperty of hDispatchDriver 3 OLE_VT_BOOL to value
597
    End_Procedure
598

  
599
    // The 'smooth scrolling' state (on/off)
600
    { MethodType=Property DesignTime=False }
601
    Function ComSmoothScrolling Returns Boolean
602
        Handle hDispatchDriver
603
        Boolean retVal
604
        Get phDispatchDriver to hDispatchDriver
605
        Get InvokeComMethod of hDispatchDriver 3 OLE_VT_BOOL to retVal
606
        Function_Return retVal
607
    End_Function
608

  
609
    // The read-only state (on/off)
610
    { MethodType=Property DesignTime=False }
611
    Procedure Set ComReadOnly Boolean value
612
        Handle hDispatchDriver
613
        Get phDispatchDriver to hDispatchDriver
614
        Send PrepareParams to hDispatchDriver 1
615
        Set ComProperty of hDispatchDriver 4 OLE_VT_BOOL to value
616
    End_Procedure
617

  
618
    // The read-only state (on/off)
619
    { MethodType=Property DesignTime=False }
620
    Function ComReadOnly Returns Boolean
621
        Handle hDispatchDriver
622
        Boolean retVal
623
        Get phDispatchDriver to hDispatchDriver
624
        Get InvokeComMethod of hDispatchDriver 4 OLE_VT_BOOL to retVal
625
        Function_Return retVal
626
    End_Function
627

  
628
    // The 'display line tooltips' state (on/off)
629
    { MethodType=Property DesignTime=False }
630
    Procedure Set ComLineToolTips Boolean value
631
        Handle hDispatchDriver
632
        Get phDispatchDriver to hDispatchDriver
633
        Send PrepareParams to hDispatchDriver 1
634
        Set ComProperty of hDispatchDriver 5 OLE_VT_BOOL to value
635
    End_Procedure
636

  
637
    // The 'display line tooltips' state (on/off)
638
    { MethodType=Property DesignTime=False }
639
    Function ComLineToolTips Returns Boolean
640
        Handle hDispatchDriver
641
        Boolean retVal
642
        Get phDispatchDriver to hDispatchDriver
643
        Get InvokeComMethod of hDispatchDriver 5 OLE_VT_BOOL to retVal
644
        Function_Return retVal
645
    End_Function
646

  
647
    // The left margin visibility state (on/off)
648
    { MethodType=Property DesignTime=False }
649
    Procedure Set ComDisplayLeftMargin Boolean value
650
        Handle hDispatchDriver
651
        Get phDispatchDriver to hDispatchDriver
652
        Send PrepareParams to hDispatchDriver 1
653
        Set ComProperty of hDispatchDriver 6 OLE_VT_BOOL to value
654
    End_Procedure
655

  
656
    // The left margin visibility state (on/off)
657
    { MethodType=Property DesignTime=False }
658
    Function ComDisplayLeftMargin Returns Boolean
659
        Handle hDispatchDriver
660
        Boolean retVal
661
        Get phDispatchDriver to hDispatchDriver
662
        Get InvokeComMethod of hDispatchDriver 6 OLE_VT_BOOL to retVal
663
        Function_Return retVal
664
    End_Function
665

  
666
    // The column selection enabled state (on/off)
667
    { MethodType=Property DesignTime=False }
668
    Procedure Set ComColumnSel Boolean value
669
        Handle hDispatchDriver
670
        Get phDispatchDriver to hDispatchDriver
671
        Send PrepareParams to hDispatchDriver 1
672
        Set ComProperty of hDispatchDriver 7 OLE_VT_BOOL to value
673
    End_Procedure
674

  
675
    // The column selection enabled state (on/off)
676
    { MethodType=Property DesignTime=False }
677
    Function ComColumnSel Returns Boolean
678
        Handle hDispatchDriver
679
        Boolean retVal
680
        Get phDispatchDriver to hDispatchDriver
681
        Get InvokeComMethod of hDispatchDriver 7 OLE_VT_BOOL to retVal
682
        Function_Return retVal
683
    End_Function
684

  
685
    // The drag and drop enabled state (on/off)
686
    { MethodType=Property DesignTime=False }
687
    Procedure Set ComDragDrop Boolean value
688
        Handle hDispatchDriver
689
        Get phDispatchDriver to hDispatchDriver
690
        Send PrepareParams to hDispatchDriver 1
691
        Set ComProperty of hDispatchDriver 8 OLE_VT_BOOL to value
692
    End_Procedure
693

  
694
    // The drag and drop enabled state (on/off)
695
    { MethodType=Property DesignTime=False }
696
    Function ComDragDrop Returns Boolean
697
        Handle hDispatchDriver
698
        Boolean retVal
699
        Get phDispatchDriver to hDispatchDriver
700
        Get InvokeComMethod of hDispatchDriver 8 OLE_VT_BOOL to retVal
701
        Function_Return retVal
702
    End_Function
703

  
704
    // The character overtype state (on/off)
705
    { MethodType=Property DesignTime=False }
706
    Procedure Set ComOvertype Boolean value
707
        Handle hDispatchDriver
708
        Get phDispatchDriver to hDispatchDriver
709
        Send PrepareParams to hDispatchDriver 1
710
        Set ComProperty of hDispatchDriver 9 OLE_VT_BOOL to value
711
    End_Procedure
712

  
713
    // The character overtype state (on/off)
714
    { MethodType=Property DesignTime=False }
715
    Function ComOvertype Returns Boolean
716
        Handle hDispatchDriver
717
        Boolean retVal
718
        Get phDispatchDriver to hDispatchDriver
719
        Get InvokeComMethod of hDispatchDriver 9 OLE_VT_BOOL to retVal
720
        Function_Return retVal
721
    End_Function
722

  
723
    // The case sensitive searching state (on/off)
724
    { MethodType=Property DesignTime=False }
725
    Procedure Set ComSearchCaseSensitive Boolean value
726
        Handle hDispatchDriver
727
        Get phDispatchDriver to hDispatchDriver
728
        Send PrepareParams to hDispatchDriver 1
729
        Set ComProperty of hDispatchDriver 10 OLE_VT_BOOL to value
730
    End_Procedure
731

  
732
    // The case sensitive searching state (on/off)
733
    { MethodType=Property DesignTime=False }
734
    Function ComSearchCaseSensitive Returns Boolean
735
        Handle hDispatchDriver
736
        Boolean retVal
737
        Get phDispatchDriver to hDispatchDriver
738
        Get InvokeComMethod of hDispatchDriver 10 OLE_VT_BOOL to retVal
739
        Function_Return retVal
740
    End_Function
741

  
742
    // The intelligent case preservation replacing state (on/off)
743
    { MethodType=Property DesignTime=False }
744
    Procedure Set ComReplacePreserveCase Boolean value
745
        Handle hDispatchDriver
746
        Get phDispatchDriver to hDispatchDriver
747
        Send PrepareParams to hDispatchDriver 1
748
        Set ComProperty of hDispatchDriver 11 OLE_VT_BOOL to value
749
    End_Procedure
750

  
751
    // The intelligent case preservation replacing state (on/off)
752
    { MethodType=Property DesignTime=False }
753
    Function ComReplacePreserveCase Returns Boolean
754
        Handle hDispatchDriver
755
        Boolean retVal
756
        Get phDispatchDriver to hDispatchDriver
757
        Get InvokeComMethod of hDispatchDriver 11 OLE_VT_BOOL to retVal
758
        Function_Return retVal
759
    End_Function
760

  
761
    // The whole word searching state (on/off)
762
    { MethodType=Property DesignTime=False }
763
    Procedure Set ComSearchWholeWord Boolean value
764
        Handle hDispatchDriver
765
        Get phDispatchDriver to hDispatchDriver
766
        Send PrepareParams to hDispatchDriver 1
767
        Set ComProperty of hDispatchDriver 12 OLE_VT_BOOL to value
768
    End_Procedure
769

  
770
    // The whole word searching state (on/off)
771
    { MethodType=Property DesignTime=False }
772
    Function ComSearchWholeWord Returns Boolean
773
        Handle hDispatchDriver
774
        Boolean retVal
775
        Get phDispatchDriver to hDispatchDriver
776
        Get InvokeComMethod of hDispatchDriver 12 OLE_VT_BOOL to retVal
777
        Function_Return retVal
778
    End_Function
779

  
780
    // The buffer modified state (on/off)
781
    { MethodType=Property DesignTime=False }
782
    Procedure Set ComModified Boolean value
783
        Handle hDispatchDriver
784
        Get phDispatchDriver to hDispatchDriver
785
        Send PrepareParams to hDispatchDriver 1
786
        Set ComProperty of hDispatchDriver 13 OLE_VT_BOOL to value
787
    End_Procedure
788

  
789
    // The buffer modified state (on/off)
790
    { MethodType=Property DesignTime=False }
791
    Function ComModified Returns Boolean
792
        Handle hDispatchDriver
793
        Boolean retVal
794
        Get phDispatchDriver to hDispatchDriver
795
        Get InvokeComMethod of hDispatchDriver 13 OLE_VT_BOOL to retVal
796
        Function_Return retVal
797
    End_Function
798

  
799
    // The CRLF line delimiter buffer modified state (on/off)
800
    { MethodType=Property DesignTime=False }
801
    Procedure Set ComCRLF Boolean value
802
        Handle hDispatchDriver
803
        Get phDispatchDriver to hDispatchDriver
804
        Send PrepareParams to hDispatchDriver 1
805
        Set ComProperty of hDispatchDriver 14 OLE_VT_BOOL to value
806
    End_Procedure
807

  
808
    // The CRLF line delimiter buffer modified state (on/off)
809
    { MethodType=Property DesignTime=False }
810
    Function ComCRLF Returns Boolean
811
        Handle hDispatchDriver
812
        Boolean retVal
813
        Get phDispatchDriver to hDispatchDriver
814
        Get InvokeComMethod of hDispatchDriver 14 OLE_VT_BOOL to retVal
815
        Function_Return retVal
816
    End_Function
817

  
818
    // The global properties state (on/off)
819
    { MethodType=Property DesignTime=False }
820
    Procedure Set ComGlobalProps Boolean value
821
        Handle hDispatchDriver
822
        Get phDispatchDriver to hDispatchDriver
823
        Send PrepareParams to hDispatchDriver 1
824
        Set ComProperty of hDispatchDriver 15 OLE_VT_BOOL to value
825
    End_Procedure
826

  
827
    // The global properties state (on/off)
828
    { MethodType=Property DesignTime=False }
829
    Function ComGlobalProps Returns Boolean
830
        Handle hDispatchDriver
831
        Boolean retVal
832
        Get phDispatchDriver to hDispatchDriver
833
        Get InvokeComMethod of hDispatchDriver 15 OLE_VT_BOOL to retVal
834
        Function_Return retVal
835
    End_Function
836

  
837
    // The vscroll visibility state (on/off)
838
    { MethodType=Property DesignTime=False }
839
    Procedure Set ComVScrollVisible Boolean value
840
        Handle hDispatchDriver
841
        Get phDispatchDriver to hDispatchDriver
842
        Send PrepareParams to hDispatchDriver 1
843
        Set ComProperty of hDispatchDriver 16 OLE_VT_BOOL to value
844
    End_Procedure
845

  
846
    // The vscroll visibility state (on/off)
847
    { MethodType=Property DesignTime=False }
848
    Function ComVScrollVisible Returns Boolean
849
        Handle hDispatchDriver
850
        Boolean retVal
851
        Get phDispatchDriver to hDispatchDriver
852
        Get InvokeComMethod of hDispatchDriver 16 OLE_VT_BOOL to retVal
853
        Function_Return retVal
854
    End_Function
855

  
856
    // The hscroll visibility state (on/off)
857
    { MethodType=Property DesignTime=False }
858
    Procedure Set ComHScrollVisible Boolean value
859
        Handle hDispatchDriver
860
        Get phDispatchDriver to hDispatchDriver
861
        Send PrepareParams to hDispatchDriver 1
862
        Set ComProperty of hDispatchDriver 17 OLE_VT_BOOL to value
863
    End_Procedure
864

  
865
    // The hscroll visibility state (on/off)
866
    { MethodType=Property DesignTime=False }
867
    Function ComHScrollVisible Returns Boolean
868
        Handle hDispatchDriver
869
        Boolean retVal
870
        Get phDispatchDriver to hDispatchDriver
871
        Get InvokeComMethod of hDispatchDriver 17 OLE_VT_BOOL to retVal
872
        Function_Return retVal
873
    End_Function
874

  
875
    // The vsplitter visibility state (on/off)
876
    { MethodType=Property DesignTime=False }
877
    Procedure Set ComVSplitter Boolean value
878
        Handle hDispatchDriver
879
        Get phDispatchDriver to hDispatchDriver
880
        Send PrepareParams to hDispatchDriver 1
881
        Set ComProperty of hDispatchDriver 18 OLE_VT_BOOL to value
882
    End_Procedure
883

  
884
    // The vsplitter visibility state (on/off)
885
    { MethodType=Property DesignTime=False }
886
    Function ComVSplitter Returns Boolean
887
        Handle hDispatchDriver
888
        Boolean retVal
889
        Get phDispatchDriver to hDispatchDriver
890
        Get InvokeComMethod of hDispatchDriver 18 OLE_VT_BOOL to retVal
891
        Function_Return retVal
892
    End_Function
893

  
894
    // The hsplitter visibility state (on/off)
895
    { MethodType=Property DesignTime=False }
896
    Procedure Set ComHSplitter Boolean value
897
        Handle hDispatchDriver
898
        Get phDispatchDriver to hDispatchDriver
899
        Send PrepareParams to hDispatchDriver 1
900
        Set ComProperty of hDispatchDriver 19 OLE_VT_BOOL to value
901
    End_Procedure
902

  
903
    // The hsplitter visibility state (on/off)
904
    { MethodType=Property DesignTime=False }
905
    Function ComHSplitter Returns Boolean
906
        Handle hDispatchDriver
907
        Boolean retVal
908
        Get phDispatchDriver to hDispatchDriver
909
        Get InvokeComMethod of hDispatchDriver 19 OLE_VT_BOOL to retVal
910
        Function_Return retVal
911
    End_Function
912

  
913
    // The currently selected language
914
    { MethodType=Property DesignTime=False }
915
    Procedure Set ComLanguage Variant value
916
        Handle hDispatchDriver
917
        Get phDispatchDriver to hDispatchDriver
918
        Send PrepareParams to hDispatchDriver 1
919
        Set ComProperty of hDispatchDriver 20 OLE_VT_DISPATCH to value
920
    End_Procedure
921

  
922
    // The currently selected language
923
    { MethodType=Property DesignTime=False }
924
    Function ComLanguage Returns Variant
925
        Handle hDispatchDriver
926
        Variant retVal
927
        Get phDispatchDriver to hDispatchDriver
928
        Get InvokeComMethod of hDispatchDriver 20 OLE_VT_DISPATCH to retVal
929
        Function_Return retVal
930
    End_Function
931

  
932
    // The current tab size (characters, including NULL terminator)
933
    { MethodType=Property DesignTime=False }
934
    Procedure Set ComTabSize Integer value
935
        Handle hDispatchDriver
936
        Get phDispatchDriver to hDispatchDriver
937
        Send PrepareParams to hDispatchDriver 1
938
        Set ComProperty of hDispatchDriver 21 OLE_VT_I4 to value
939
    End_Procedure
940

  
941
    // The current tab size (characters, including NULL terminator)
942
    { MethodType=Property DesignTime=False }
943
    Function ComTabSize Returns Integer
944
        Handle hDispatchDriver
945
        Integer retVal
946
        Get phDispatchDriver to hDispatchDriver
947
        Get InvokeComMethod of hDispatchDriver 21 OLE_VT_I4 to retVal
948
        Function_Return retVal
949
    End_Function
950

  
951
    // The topmost visible line number in view 0
952
    { MethodType=Property DesignTime=False }
953
    Procedure Set ComTopIndex Integer value
954
        Handle hDispatchDriver
955
        Get phDispatchDriver to hDispatchDriver
956
        Send PrepareParams to hDispatchDriver 1
957
        Set ComProperty of hDispatchDriver 22 OLE_VT_I4 to value
958
    End_Procedure
959

  
960
    // The topmost visible line number in view 0
961
    { MethodType=Property DesignTime=False }
962
    Function ComTopIndex Returns Integer
963
        Handle hDispatchDriver
964
        Integer retVal
965
        Get phDispatchDriver to hDispatchDriver
966
        Get InvokeComMethod of hDispatchDriver 22 OLE_VT_I4 to retVal
967
        Function_Return retVal
968
    End_Function
969

  
970
    // The max number of undoable edit actions (0 = none, n = limit, -1 = unlimited)
971
    { MethodType=Property DesignTime=False }
972
    Procedure Set ComUndoLimit Integer value
973
        Handle hDispatchDriver
974
        Get phDispatchDriver to hDispatchDriver
975
        Send PrepareParams to hDispatchDriver 1
976
        Set ComProperty of hDispatchDriver 23 OLE_VT_I4 to value
977
    End_Procedure
978

  
979
    // The max number of undoable edit actions (0 = none, n = limit, -1 = unlimited)
980
    { MethodType=Property DesignTime=False }
981
    Function ComUndoLimit Returns Integer
982
        Handle hDispatchDriver
983
        Integer retVal
984
        Get phDispatchDriver to hDispatchDriver
985
        Get InvokeComMethod of hDispatchDriver 23 OLE_VT_I4 to retVal
986
        Function_Return retVal
987
    End_Function
988

  
989
    // The currently active view number
990
    { MethodType=Property DesignTime=False }
991
    Procedure Set ComCurrentView Integer value
992
        Handle hDispatchDriver
993
        Get phDispatchDriver to hDispatchDriver
994
        Send PrepareParams to hDispatchDriver 1
995
        Set ComProperty of hDispatchDriver 24 OLE_VT_I4 to value
996
    End_Procedure
997

  
998
    // The currently active view number
999
    { MethodType=Property DesignTime=False }
1000
    Function ComCurrentView Returns Integer
1001
        Handle hDispatchDriver
1002
        Integer retVal
1003
        Get phDispatchDriver to hDispatchDriver
1004
        Get InvokeComMethod of hDispatchDriver 24 OLE_VT_I4 to retVal
1005
        Function_Return retVal
1006
    End_Function
1007

  
1008
    // The length of the entire buffer contents in bytes
1009
    { MethodType=Property DesignTime=False }
1010
    Function ComTextLength Returns Integer
1011
        Handle hDispatchDriver
1012
        Integer retVal
1013
        Get phDispatchDriver to hDispatchDriver
1014
        Get InvokeComMethod of hDispatchDriver 25 OLE_VT_I4 to retVal
1015
        Function_Return retVal
1016
    End_Function
1017

  
1018
    // The buffer line count
1019
    { MethodType=Property DesignTime=False }
1020
    Function ComLineCount Returns Integer
1021
        Handle hDispatchDriver
1022
        Integer retVal
1023
        Get phDispatchDriver to hDispatchDriver
1024
        Get InvokeComMethod of hDispatchDriver 26 OLE_VT_I4 to retVal
1025
        Function_Return retVal
1026
    End_Function
1027

  
1028
    // The word under the caret
1029
    { MethodType=Property DesignTime=False }
1030
    Function ComCurrentWord Returns String
1031
        Handle hDispatchDriver
1032
        String retVal
1033
        Get phDispatchDriver to hDispatchDriver
1034
        Get InvokeComMethod of hDispatchDriver 27 OLE_VT_BSTR to retVal
1035
        Function_Return retVal
1036
    End_Function
1037

  
1038
    // The length of the word under the caret (in bytes)
1039
    { MethodType=Property DesignTime=False }
1040
    Function ComCurrentWordLength Returns Integer
1041
        Handle hDispatchDriver
1042
        Integer retVal
1043
        Get phDispatchDriver to hDispatchDriver
1044
        Get InvokeComMethod of hDispatchDriver 28 OLE_VT_I4 to retVal
1045
        Function_Return retVal
1046
    End_Function
1047

  
1048
    // The current auto indent mode as defined in cmAutoIndentMode
1049
    { MethodType=Property DesignTime=False }
1050
    Procedure Set ComAutoIndentMode OLEcmAutoIndentMode value
1051
        Handle hDispatchDriver
1052
        Get phDispatchDriver to hDispatchDriver
1053
        Send PrepareParams to hDispatchDriver 1
1054
        Set ComProperty of hDispatchDriver 29 OLE_VT_I4 to value
1055
    End_Procedure
1056

  
1057
    // The current auto indent mode as defined in cmAutoIndentMode
1058
    { MethodType=Property DesignTime=False }
1059
    Function ComAutoIndentMode Returns OLEcmAutoIndentMode
1060
        Handle hDispatchDriver
1061
        OLEcmAutoIndentMode retVal
1062
        Get phDispatchDriver to hDispatchDriver
1063
        Get InvokeComMethod of hDispatchDriver 29 OLE_VT_I4 to retVal
1064
        Function_Return retVal
1065
    End_Function
1066

  
1067
    // The total number of open views
1068
    { MethodType=Property DesignTime=False }
1069
    Function ComViewCount Returns Integer
1070
        Handle hDispatchDriver
1071
        Integer retVal
1072
        Get phDispatchDriver to hDispatchDriver
1073
        Get InvokeComMethod of hDispatchDriver 30 OLE_VT_I4 to retVal
1074
        Function_Return retVal
1075
    End_Function
1076

  
1077
    // The vertical position of the vsplitter
1078
    { MethodType=Property DesignTime=False }
1079
    Procedure Set ComVSplitterPos Integer value
1080
        Handle hDispatchDriver
1081
        Get phDispatchDriver to hDispatchDriver
1082
        Send PrepareParams to hDispatchDriver 1
1083
        Set ComProperty of hDispatchDriver 31 OLE_VT_I4 to value
1084
    End_Procedure
1085

  
1086
    // The vertical position of the vsplitter
1087
    { MethodType=Property DesignTime=False }
1088
    Function ComVSplitterPos Returns Integer
1089
        Handle hDispatchDriver
1090
        Integer retVal
1091
        Get phDispatchDriver to hDispatchDriver
1092
        Get InvokeComMethod of hDispatchDriver 31 OLE_VT_I4 to retVal
1093
        Function_Return retVal
1094
    End_Function
1095

  
1096
    // The horizontal position of the hsplitter
1097
    { MethodType=Property DesignTime=False }
1098
    Procedure Set ComHSplitterPos Integer value
1099
        Handle hDispatchDriver
1100
        Get phDispatchDriver to hDispatchDriver
1101
        Send PrepareParams to hDispatchDriver 1
1102
        Set ComProperty of hDispatchDriver 32 OLE_VT_I4 to value
1103
    End_Procedure
1104

  
1105
    // The horizontal position of the hsplitter
1106
    { MethodType=Property DesignTime=False }
1107
    Function ComHSplitterPos Returns Integer
1108
        Handle hDispatchDriver
1109
        Integer retVal
1110
        Get phDispatchDriver to hDispatchDriver
1111
        Get InvokeComMethod of hDispatchDriver 32 OLE_VT_I4 to retVal
1112
        Function_Return retVal
1113
    End_Function
1114

  
1115
    // The current find text
1116
    { MethodType=Property DesignTime=False }
1117
    Procedure Set ComFindText String value
1118
        Handle hDispatchDriver
1119
        Get phDispatchDriver to hDispatchDriver
1120
        Send PrepareParams to hDispatchDriver 1
1121
        Set ComProperty of hDispatchDriver 33 OLE_VT_BSTR to value
1122
    End_Procedure
1123

  
1124
    // The current find text
1125
    { MethodType=Property DesignTime=False }
1126
    Function ComFindText Returns String
1127
        Handle hDispatchDriver
1128
        String retVal
1129
        Get phDispatchDriver to hDispatchDriver
1130
        Get InvokeComMethod of hDispatchDriver 33 OLE_VT_BSTR to retVal
1131
        Function_Return retVal
1132
    End_Function
1133

  
1134
    // The current replace text
1135
    { MethodType=Property DesignTime=False }
1136
    Procedure Set ComReplText String value
1137
        Handle hDispatchDriver
1138
        Get phDispatchDriver to hDispatchDriver
1139
        Send PrepareParams to hDispatchDriver 1
1140
        Set ComProperty of hDispatchDriver 34 OLE_VT_BSTR to value
1141
    End_Procedure
1142

  
1143
    // The current replace text
1144
    { MethodType=Property DesignTime=False }
1145
    Function ComReplText Returns String
1146
        Handle hDispatchDriver
1147
        String retVal
1148
        Get phDispatchDriver to hDispatchDriver
1149
        Get InvokeComMethod of hDispatchDriver 34 OLE_VT_BSTR to retVal
1150
        Function_Return retVal
1151
    End_Function
1152

  
1153
    // Line numbering (on/off)
1154
    { MethodType=Property DesignTime=False }
1155
    Procedure Set ComLineNumbering Boolean value
1156
        Handle hDispatchDriver
1157
        Get phDispatchDriver to hDispatchDriver
1158
        Send PrepareParams to hDispatchDriver 1
1159
        Set ComProperty of hDispatchDriver 84 OLE_VT_BOOL to value
1160
    End_Procedure
1161

  
1162
    // Line numbering (on/off)
1163
    { MethodType=Property DesignTime=False }
1164
    Function ComLineNumbering Returns Boolean
1165
        Handle hDispatchDriver
1166
        Boolean retVal
1167
        Get phDispatchDriver to hDispatchDriver
1168
        Get InvokeComMethod of hDispatchDriver 84 OLE_VT_BOOL to retVal
1169
        Function_Return retVal
1170
    End_Function
1171

  
1172
    // Line number starting value
1173
    { MethodType=Property DesignTime=False }
1174
    Procedure Set ComLineNumberStart Integer value
1175
        Handle hDispatchDriver
1176
        Get phDispatchDriver to hDispatchDriver
1177
        Send PrepareParams to hDispatchDriver 1
1178
        Set ComProperty of hDispatchDriver 85 OLE_VT_I4 to value
1179
    End_Procedure
1180

  
1181
    // Line number starting value
1182
    { MethodType=Property DesignTime=False }
1183
    Function ComLineNumberStart Returns Integer
1184
        Handle hDispatchDriver
1185
        Integer retVal
1186
        Get phDispatchDriver to hDispatchDriver
1187
        Get InvokeComMethod of hDispatchDriver 85 OLE_VT_I4 to retVal
1188
        Function_Return retVal
1189
    End_Function
1190

  
1191
    // Line number style (cmDecimal, cmHex, etc.)
1192
    { MethodType=Property DesignTime=False }
1193
    Procedure Set ComLineNumberStyle OLEcmLineNumStyle value
1194
        Handle hDispatchDriver
1195
        Get phDispatchDriver to hDispatchDriver
1196
        Send PrepareParams to hDispatchDriver 1
1197
        Set ComProperty of hDispatchDriver 86 OLE_VT_I4 to value
1198
    End_Procedure
1199

  
1200
    // Line number style (cmDecimal, cmHex, etc.)
1201
    { MethodType=Property DesignTime=False }
1202
    Function ComLineNumberStyle Returns OLEcmLineNumStyle
1203
        Handle hDispatchDriver
1204
        OLEcmLineNumStyle retVal
1205
        Get phDispatchDriver to hDispatchDriver
1206
        Get InvokeComMethod of hDispatchDriver 86 OLE_VT_I4 to retVal
1207
        Function_Return retVal
1208
    End_Function
1209

  
1210
    // Retrieves the word at a specific buffer location
1211
    Function ComGetWord Variant llPos Returns String
1212
        Handle hDispatchDriver
1213
        String retVal
1214
        Get phDispatchDriver to hDispatchDriver
1215
        Send PrepareParams to hDispatchDriver 1
1216
        Send DefineParam to hDispatchDriver OLE_VT_DISPATCH llPos
1217
        Get InvokeComMethod of hDispatchDriver 35 OLE_VT_BSTR to retVal
1218
        Function_Return retVal
1219
    End_Function
1220

  
1221
    // Retrieves the length of the word at a specific buffer location
1222
    Function ComGetWordLength Variant llPos Returns Integer
1223
        Handle hDispatchDriver
1224
        Integer retVal
1225
        Get phDispatchDriver to hDispatchDriver
1226
        Send PrepareParams to hDispatchDriver 1
1227
        Send DefineParam to hDispatchDriver OLE_VT_DISPATCH llPos
1228
        Get InvokeComMethod of hDispatchDriver 36 OLE_VT_I4 to retVal
1229
        Function_Return retVal
1230
    End_Function
1231

  
1232
    // Retrieves the topmost visible line in a specific view
1233
    Function ComGetTopIndex Integer llView Returns Integer
1234
        Handle hDispatchDriver
1235
        Integer retVal
1236
        Get phDispatchDriver to hDispatchDriver
1237
        Send PrepareParams to hDispatchDriver 1
1238
        Send DefineParam to hDispatchDriver OLE_VT_I4 llView
1239
        Get InvokeComMethod of hDispatchDriver 37 OLE_VT_I4 to retVal
1240
        Function_Return retVal
1241
    End_Function
1242

  
1243
    // Sets the topmost visible line in a specific view
1244
    Procedure ComSetTopIndex Integer llView Integer llLine
1245
        Handle hDispatchDriver
1246
        Get phDispatchDriver to hDispatchDriver
1247
        Send PrepareParams to hDispatchDriver 2
1248
        Send DefineParam to hDispatchDriver OLE_VT_I4 llView
1249
        Send DefineParam to hDispatchDriver OLE_VT_I4 llLine
1250
        Send InvokeComMethod to hDispatchDriver 38 OLE_VT_VOID
1251
    End_Procedure
1252

  
1253
    // Retrieves the current selection
1254
    Function ComGetSel Boolean llNormalized Returns Variant
1255
        Handle hDispatchDriver
1256
        Variant retVal
1257
        Get phDispatchDriver to hDispatchDriver
1258
        Send PrepareParams to hDispatchDriver 1
1259
        Send DefineParam to hDispatchDriver OLE_VT_BOOL llNormalized
1260
        Get InvokeComMethod of hDispatchDriver 39 OLE_VT_DISPATCH to retVal
1261
        Function_Return retVal
1262
    End_Function
1263

  
1264
    // Changes the current selection
1265
    Procedure ComSetSel Variant llSel Boolean llMakeVisible
1266
        Handle hDispatchDriver
1267
        Get phDispatchDriver to hDispatchDriver
1268
        Send PrepareParams to hDispatchDriver 2
1269
        Send DefineParam to hDispatchDriver OLE_VT_DISPATCH llSel
1270
        Send DefineParam to hDispatchDriver OLE_VT_BOOL llMakeVisible
1271
        Send InvokeComMethod to hDispatchDriver 40 OLE_VT_VOID
1272
    End_Procedure
1273

  
1274
    // Retrieves the buffer coordinates under a specific window (x,y) client position
1275
    Function ComGetSelFromPoint Integer llxClientPos Integer llyClientPos Returns Variant
1276
        Handle hDispatchDriver
1277
        Variant retVal
1278
        Get phDispatchDriver to hDispatchDriver
1279
        Send PrepareParams to hDispatchDriver 2
1280
        Send DefineParam to hDispatchDriver OLE_VT_I4 llxClientPos
1281
        Send DefineParam to hDispatchDriver OLE_VT_I4 llyClientPos
1282
        Get InvokeComMethod of hDispatchDriver 41 OLE_VT_DISPATCH to retVal
1283
        Function_Return retVal
1284
    End_Function
1285

  
1286
    // Returns the total number of fully or partially visible lines in a specific view
1287
    Function ComGetVisibleLineCount Integer llView Boolean llFullyVisible Returns Integer
1288
        Handle hDispatchDriver
1289
        Integer retVal
1290
        Get phDispatchDriver to hDispatchDriver
1291
        Send PrepareParams to hDispatchDriver 2
1292
        Send DefineParam to hDispatchDriver OLE_VT_I4 llView
1293
        Send DefineParam to hDispatchDriver OLE_VT_BOOL llFullyVisible
1294
        Get InvokeComMethod of hDispatchDriver 42 OLE_VT_I4 to retVal
1295
        Function_Return retVal
1296
    End_Function
1297

  
1298
    // Retrieves the text of a specific line
1299
    Function ComGetLine Integer llLine Returns String
1300
        Handle hDispatchDriver
1301
        String retVal
1302
        Get phDispatchDriver to hDispatchDriver
1303
        Send PrepareParams to hDispatchDriver 1
1304
        Send DefineParam to hDispatchDriver OLE_VT_I4 llLine
1305
        Get InvokeComMethod of hDispatchDriver 43 OLE_VT_BSTR to retVal
1306
        Function_Return retVal
1307
    End_Function
1308

  
1309
    // Returns the length of a specific line's text
1310
    Function ComGetLineLength Integer llLine Returns Integer
1311
        Handle hDispatchDriver
1312
        Integer retVal
1313
        Get phDispatchDriver to hDispatchDriver
1314
        Send PrepareParams to hDispatchDriver 1
1315
        Send DefineParam to hDispatchDriver OLE_VT_I4 llLine
1316
        Get InvokeComMethod of hDispatchDriver 44 OLE_VT_I4 to retVal
1317
        Function_Return retVal
1318
    End_Function
1319

  
1320
    // Sets the color of a specific window aspect defined in cmColorItem
1321
    Procedure ComSetColor OLEcmColorItem lllColorItem Integer llColorRGB
1322
        Handle hDispatchDriver
1323
        Get phDispatchDriver to hDispatchDriver
1324
        Send PrepareParams to hDispatchDriver 2
1325
        Send DefineParam to hDispatchDriver OLE_VT_I4 lllColorItem
1326
        Send DefineParam to hDispatchDriver OLE_VT_I4 llColorRGB
1327
        Send InvokeComMethod to hDispatchDriver 45 OLE_VT_VOID
1328
    End_Procedure
1329

  
1330
    // Retrieves the color of a specific window aspect defined in cmColorItem
1331
    Function ComGetColor OLEcmColorItem lllColorItem Returns Integer
1332
        Handle hDispatchDriver
1333
        Integer retVal
1334
        Get phDispatchDriver to hDispatchDriver
1335
        Send PrepareParams to hDispatchDriver 1
1336
        Send DefineParam to hDispatchDriver OLE_VT_I4 lllColorItem
1337
        Get InvokeComMethod of hDispatchDriver 46 OLE_VT_I4 to retVal
1338
        Function_Return retVal
1339
    End_Function
1340

  
1341
    // Places a file's contents into the edit buffer
1342
    Procedure ComOpenFile String llFileName
1343
        Handle hDispatchDriver
1344
        Get phDispatchDriver to hDispatchDriver
1345
        Send PrepareParams to hDispatchDriver 1
1346
        Send DefineParam to hDispatchDriver OLE_VT_BSTR llFileName
1347
        Send InvokeComMethod to hDispatchDriver 47 OLE_VT_VOID
1348
    End_Procedure
1349

  
1350
    // Saves the buffer contents into a file
1351
    Procedure ComSaveFile String llFileName OLEcmSaveFlags llFlags
1352
        Handle hDispatchDriver
1353
        Get phDispatchDriver to hDispatchDriver
1354
        Send PrepareParams to hDispatchDriver 2
1355
        Send DefineParam to hDispatchDriver OLE_VT_BSTR llFileName
1356
        Send DefineParam to hDispatchDriver OLE_VT_I4 llFlags
1357
        Send InvokeComMethod to hDispatchDriver 48 OLE_VT_VOID
1358
    End_Procedure
1359

  
1360
    // Inserts a file's contents into the edit buffer at a specific location
1361
    Procedure ComInsertFile String llFileName Variant llInsertPos
1362
        Handle hDispatchDriver
1363
        Get phDispatchDriver to hDispatchDriver
1364
        Send PrepareParams to hDispatchDriver 2
1365
        Send DefineParam to hDispatchDriver OLE_VT_BSTR llFileName
1366
        Send DefineParam to hDispatchDriver OLE_VT_DISPATCH llInsertPos
1367
        Send InvokeComMethod to hDispatchDriver 49 OLE_VT_VOID
1368
    End_Procedure
1369

  
1370
    // Inserts a block of text into the edit buffer at a specific location
1371
    Procedure ComInsertText String llText Variant llPos
1372
        Handle hDispatchDriver
1373
        Get phDispatchDriver to hDispatchDriver
1374
        Send PrepareParams to hDispatchDriver 2
1375
        Send DefineParam to hDispatchDriver OLE_VT_BSTR llText
1376
        Send DefineParam to hDispatchDriver OLE_VT_DISPATCH llPos
1377
        Send InvokeComMethod to hDispatchDriver 50 OLE_VT_VOID
1378
    End_Procedure
1379

  
1380
    // Replaces buffer text with a separate block of text
1381
    Procedure ComReplaceText String llText Variant llRange
1382
        Handle hDispatchDriver
1383
        Get phDispatchDriver to hDispatchDriver
1384
        Send PrepareParams to hDispatchDriver 2
1385
        Send DefineParam to hDispatchDriver OLE_VT_BSTR llText
1386
        Send DefineParam to hDispatchDriver OLE_VT_DISPATCH llRange
1387
        Send InvokeComMethod to hDispatchDriver 51 OLE_VT_VOID
1388
    End_Procedure
1389

  
1390
    // Determines the CodeMax window component (defined in cmHitTestCode) under a specific (x,y) window client coordinate
1391
    Function ComHitTest Integer llClientCoordX Integer llClientCoordY Variant llParser Integer ByRef llView Returns OLEcmHitTestCode
1392
        Handle hDispatchDriver
1393
        OLEcmHitTestCode retVal
1394
        Get phDispatchDriver to hDispatchDriver
1395
        Send PrepareParams to hDispatchDriver 4
1396
        Send DefineParam to hDispatchDriver OLE_VT_I4 llClientCoordX
1397
        Send DefineParam to hDispatchDriver OLE_VT_I4 llClientCoordY
1398
        Send DefineParam to hDispatchDriver OLE_VT_DISPATCH llParser
1399
        Send DefineParam to hDispatchDriver (OLE_VT_BYREF ior OLE_VT_I4) llView
1400
        Get InvokeComMethod of hDispatchDriver 52 OLE_VT_I4 to retVal
1401
        Function_Return retVal
1402
    End_Function
1403

  
1404
    // Appends text to the end of the buffer
1405
    Procedure ComAddText String llText
1406
        Handle hDispatchDriver
1407
        Get phDispatchDriver to hDispatchDriver
1408
        Send PrepareParams to hDispatchDriver 1
1409
        Send DefineParam to hDispatchDriver OLE_VT_BSTR llText
1410
        Send InvokeComMethod to hDispatchDriver 53 OLE_VT_VOID
1411
    End_Procedure
1412

  
1413
    // Deletes a specific line
1414
    Procedure ComDeleteLine Integer llLine
1415
        Handle hDispatchDriver
1416
        Get phDispatchDriver to hDispatchDriver
1417
        Send PrepareParams to hDispatchDriver 1
1418
        Send DefineParam to hDispatchDriver OLE_VT_I4 llLine
1419
        Send InvokeComMethod to hDispatchDriver 54 OLE_VT_VOID
1420
    End_Procedure
1421

  
1422
    // Inserts a single line of text at a specific line position
1423
    Procedure ComInsertLine Integer llLine String llText
1424
        Handle hDispatchDriver
1425
        Get phDispatchDriver to hDispatchDriver
1426
        Send PrepareParams to hDispatchDriver 2
1427
        Send DefineParam to hDispatchDriver OLE_VT_I4 llLine
1428
        Send DefineParam to hDispatchDriver OLE_VT_BSTR llText
1429
        Send InvokeComMethod to hDispatchDriver 55 OLE_VT_VOID
1430
    End_Procedure
1431

  
1432
    // Selects a specific line
1433
    Procedure ComSelectLine Integer llLine Boolean llMakeVisible
1434
        Handle hDispatchDriver
1435
        Get phDispatchDriver to hDispatchDriver
1436
        Send PrepareParams to hDispatchDriver 2
1437
        Send DefineParam to hDispatchDriver OLE_VT_I4 llLine
1438
        Send DefineParam to hDispatchDriver OLE_VT_BOOL llMakeVisible
1439
        Send InvokeComMethod to hDispatchDriver 56 OLE_VT_VOID
1440
    End_Procedure
1441

  
1442
    // Deletes the buffer contents marked by the current selection
1443
    Procedure ComDeleteSel
1444
        Handle hDispatchDriver
1445
        Get phDispatchDriver to hDispatchDriver
1446
        Send InvokeComMethod to hDispatchDriver 57 OLE_VT_VOID
1447
    End_Procedure
1448

  
1449
    // Replaces the buffer contents marked by the current selection with a body of text
1450
    Procedure ComReplaceSel String llText
1451
        Handle hDispatchDriver
1452
        Get phDispatchDriver to hDispatchDriver
1453
        Send PrepareParams to hDispatchDriver 1
1454
        Send DefineParam to hDispatchDriver OLE_VT_BSTR llText
1455
        Send InvokeComMethod to hDispatchDriver 58 OLE_VT_VOID
1456
    End_Procedure
1457

  
1458
    // Executes a CodeMax command defined in cmCommands
1459
    Procedure ComExecuteCmd OLEcmCommand llCmd Variant llCmdData
1460
        Handle hDispatchDriver
1461
        Get phDispatchDriver to hDispatchDriver
1462
        Send PrepareParams to hDispatchDriver 2
1463
        Send DefineParam to hDispatchDriver OLE_VT_I4 llCmd
1464
        Send DefineParam to hDispatchDriver OLE_VT_VARIANT llCmdData
1465
        Send InvokeComMethod to hDispatchDriver 59 OLE_VT_VOID
1466
    End_Procedure
1467

  
1468
    // Determines if it is possible to undo an edit action
1469
    Function ComCanUndo Returns Boolean
1470
        Handle hDispatchDriver
1471
        Boolean retVal
1472
        Get phDispatchDriver to hDispatchDriver
1473
        Get InvokeComMethod of hDispatchDriver 60 OLE_VT_BOOL to retVal
1474
        Function_Return retVal
1475
    End_Function
1476

  
1477
    // Determines if it is possible to redo an edit action
1478
    Function ComCanRedo Returns Boolean
1479
        Handle hDispatchDriver
1480
        Boolean retVal
1481
        Get phDispatchDriver to hDispatchDriver
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff