155
|
How can I add a sensitive context menu

Procedure OnCreate
Forward Send OnCreate
Send ComAddKeyword "<b>class</b>" "this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword." "exontrol.edit" Nothing
Send ComRefresh
Variant voContext
Get ComContext Nothing to voContext
Handle hoContext
Get Create (RefClass(cComContext)) to hoContext
Set pvComObject of hoContext to voContext
Send ComAdd of hoContext "class" Nothing Nothing Nothing
Send Destroy to hoContext
End_Procedure
|
154
|
Can I use wild characters to define keys in your control

Procedure OnCreate
Forward Send OnCreate
Send ComAddWild "<fgcolor=808080>(*)</fgcolor>"
Send ComRefresh
End_Procedure
|
153
|
Can I use wild characters to define keys in your control

Procedure OnCreate
Forward Send OnCreate
Send ComAddWild "_HANDLER<fgcolor=FF0000>(*)</fgcolor>"
Send ComRefresh
End_Procedure
|
152
|
How can I remove or delete all expressions

Procedure OnCreate
Forward Send OnCreate
Send ComAddExpression "(" "<b><fgcolor=FF0000> </fgcolor></b>" ")" False Nothing
Send ComClearExpressions
Send ComRefresh
End_Procedure
|
151
|
How can I remove or delete an expression

Procedure OnCreate
Forward Send OnCreate
Send ComAddExpression "(" "<b><fgcolor=FF0000> </fgcolor></b>" ")" False Nothing
Send ComDeleteExpression "("
Send ComRefresh
End_Procedure
|
150
|
How can I add an expression

Procedure OnCreate
Forward Send OnCreate
Send ComAddExpression "(" "<b><fgcolor=FF0000> </fgcolor></b>" ")" False Nothing
Send ComRefresh
End_Procedure
|
149
|
How can I add an expression on multiple lines

Procedure OnCreate
Forward Send OnCreate
Send ComAddExpression "<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>" "<b><fgcolor=FF0000> </fgcolor></b>" "<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>" True Nothing
Send ComRefresh
End_Procedure
|
148
|
How can I remove or delete all keywords
Procedure OnCreate
Forward Send OnCreate
Send ComAddKeyword "<b><fgcolor=FF0000>class</fgcolor></b>" Nothing Nothing Nothing
Send ComClearKeywords
Send ComRefresh
End_Procedure
|
147
|
How can I remove or delete keyword
Procedure OnCreate
Forward Send OnCreate
Send ComAddKeyword "<b><fgcolor=FF0000>class</fgcolor></b>" Nothing Nothing Nothing
Send ComDeleteKeyword "class"
Send ComRefresh
End_Procedure
|
146
|
How do I add a keyword that's not case sensitive

Procedure OnCreate
Forward Send OnCreate
Send ComAddKeyword "<b><fgcolor=FF0000>class</fgcolor></b>" "" "" 2
Send ComRefresh
Send ComInsertText "ClasS\r\n" 1
Send ComInsertText "CLASS\r\n" 1
End_Procedure
|
145
|
How do I add a keyword that's not case sensitive

Procedure OnCreate
Forward Send OnCreate
Send ComAddKeyword "<fgcolor=FF0000>class</fgcolor>" "" "" 1
Send ComRefresh
Send ComInsertText "ClasS\r\n" 1
Send ComInsertText "CLASS\r\n" 1
End_Procedure
|
144
|
How can I assign a tooltip to a keyword

Procedure OnCreate
Forward Send OnCreate
Send ComAddKeyword "<fgcolor=FF0000>class</fgcolor>" "this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword." "exontrol.edit" Nothing
Send ComRefresh
End_Procedure
|
143
|
How do I add a keyword

Procedure OnCreate
Forward Send OnCreate
Send ComAddKeyword "<fgcolor=FF0000>class</fgcolor>" Nothing Nothing Nothing
Send ComRefresh
End_Procedure
|
142
|
How do I add a keyword

Procedure OnCreate
Forward Send OnCreate
Send ComAddKeyword "<b>class</b>" "this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword." "exontrol.edit" Nothing
Send ComRefresh
End_Procedure
|
141
|
How can I display a tooltip as soon as the user types a keyword

Procedure OnCreate
Forward Send OnCreate
Set ComToolTipDelay to 1
Set ComToolTipOnTyping to True
Send ComAddKeyword "<b>class</b>" "this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword." "exontrol.edit" Nothing
Send ComRefresh
End_Procedure
|
140
|
How do I change the color for a locked or a read only line

Procedure OnCreate
Forward Send OnCreate
Set ComForeColorLockedLine to (RGB(0,0,0))
Set ComBackColorLockedLine to (RGB(255,0,0))
Set ComLockedLine 1 to True
End_Procedure
|
139
|
How do I lock or make read only a line

Procedure OnCreate
Forward Send OnCreate
Set ComLockedLine 1 to True
End_Procedure
|
138
|
How do I start overtyping

Procedure OnCreate
Forward Send OnCreate
Set ComOvertype to True
End_Procedure
|
137
|
How do I get the selection

Procedure OnCreate
Forward Send OnCreate
Send ComGetSelection sy sx ey ex
Showln sy sx ey ex
End_Procedure
|
136
|
How do I select multiple lines

Procedure OnCreate
Forward Send OnCreate
Send ComSetSelection 0 0 10 0
Set ComHideSelection to False
End_Procedure
|
135
|
How can I change the shape of the cursor when it hovers the selected text

Procedure OnCreate
Forward Send OnCreate
Set ComCursor OLEexSelectedText to "exHelp"
Set ComSelLength to 10
Set ComHideSelection to False
End_Procedure
|
134
|
How can I change the shape of the cursor when it hovers the incremental search area

Procedure OnCreate
Forward Send OnCreate
Set ComCursor OLEexIncrementalSearchArea to "exHelp"
End_Procedure
|
133
|
How can I change the shape of the cursor when it hovers the line numbers area

Procedure OnCreate
Forward Send OnCreate
Set ComCursor OLEexLineNumberArea to "exHelp"
Set ComLineNumberWidth to 16
End_Procedure
|
132
|
How can I change the shape of the cursor when it hovers the bookmark area

Procedure OnCreate
Forward Send OnCreate
Set ComCursor OLEexBookmarkArea to "exHelp"
Set ComBookmarkWidth to 16
End_Procedure
|
131
|
How can I change the shape of the cursor when it hovers the edit
Procedure OnCreate
Forward Send OnCreate
Set ComCursor OLEexEditArea to "exHelp"
End_Procedure
|
130
|
How can I enable or disable OLE drag and drop operations
Procedure OnCreate
Forward Send OnCreate
Set ComOLEDropMode to OLEexOLEDropAutomatic
End_Procedure
|
129
|
How can I change the descriptions for items in the control's context menu

Procedure OnCreate
Forward Send OnCreate
Set ComCaption OLEexContextMenu OLEexContextUndo to "U N D O"
Set ComCaption OLEexContextMenu OLEexContextRedo to "R E D O"
Set ComCaption OLEexContextMenu OLEexContextCut to "C U T"
Set ComCaption OLEexContextMenu OLEexContextCopy to "C O P Y"
Set ComCaption OLEexContextMenu OLEexContextPaste to "P A S T E"
Set ComCaption OLEexContextMenu OLEexContextDelete to "D E L"
Set ComCaption OLEexContextMenu OLEexContextSelectAll to "A L L "
End_Procedure
|
128
|
How can I change the descriptions for fields in the Replace dialog

Procedure OnCreate
Forward Send OnCreate
Set ComCaption OLEexReplaceDialog OLEexFieldFindWhat to "What"
Set ComCaption OLEexReplaceDialog OLEexFieldReplaceWith to "Replace"
Set ComCaption OLEexReplaceDialog OLEexFieldWordOnly to "Word"
Set ComCaption OLEexReplaceDialog OLEexFieldMatchCase to "Case"
Set ComCaption OLEexReplaceDialog OLEexFieldFindNext to "Dir"
Set ComCaption OLEexReplaceDialog OLEexFieldSelection to "Sel"
Set ComCaption OLEexReplaceDialog OLEexFieldWholeFile to "File"
Set ComCaption OLEexReplaceDialog OLEexFieldReplace to "Rep"
Set ComCaption OLEexReplaceDialog OLEexFieldReplaceAll to "All"
Set ComCaption OLEexReplaceDialog OLEexFieldCancel to "Abandon"
Set ComCaption OLEexReplaceDialog OLEexErrorTitle to "Title"
Set ComCaption OLEexReplaceDialog OLEexErrorFindNext to "Failed!"
Set ComCaption OLEexReplaceDialog OLEexErrorFindNext to "Done"
End_Procedure
|
127
|
How can I change the descriptions for fields in the Find dialog

Procedure OnCreate
Forward Send OnCreate
Set ComCaption OLEexFindDialog OLEexFieldFindWhat to "What"
Set ComCaption OLEexFindDialog OLEexFieldWordOnly to "Word"
Set ComCaption OLEexFindDialog OLEexFieldMatchCase to "Case"
Set ComCaption OLEexFindDialog OLEexFieldFindNext to "Dir"
Set ComCaption OLEexFindDialog OLEexFieldSelection to "U"
Set ComCaption OLEexFindDialog OLEexFieldWholeFile to "D"
Set ComCaption OLEexFindDialog OLEexFieldFindNext to "Next"
Set ComCaption OLEexFindDialog OLEexFieldReplace to "All"
Set ComCaption OLEexFindDialog OLEexFieldCancel to "Abandon"
Set ComCaption OLEexFindDialog OLEexErrorFindNext to "Failed!"
End_Procedure
|
126
|
How can I change the caption for the Replace dialog

Procedure OnCreate
Forward Send OnCreate
Set ComCaption OLEexReplaceDialog OLEexCaption to "Search and Replace"
End_Procedure
|
125
|
How can I change the caption for the Find dialog

Procedure OnCreate
Forward Send OnCreate
Set ComCaption OLEexFindDialog OLEexCaption to "Search"
End_Procedure
|
124
|
How can I move the cursor when user invokes the control's context menu

Procedure OnCreate
Forward Send OnCreate
Set ComRClick to True
End_Procedure
|
123
|
How can I disable indenting the selected text when the user presses the TAB key
Procedure OnCreate
Forward Send OnCreate
Set ComIndentOnTab to False
End_Procedure
|
122
|
How can I indent a line

Procedure OnCreate
Forward Send OnCreate
Set ComLineNumberWidth to 18
Set ComHideSelection to False
Send ComSelectLine 3
Send ComIndentSel True
End_Procedure
|
121
|
How can I show or hide the control's splitter

Procedure OnCreate
Forward Send OnCreate
Set ComAllowSplitter to OLEexBothSplitter
Set ComSplitPaneHeight to 128
Set ComSplitPaneWidth to 128
End_Procedure
|
120
|
How can I select a line

Procedure OnCreate
Forward Send OnCreate
Set ComLineNumberWidth to 18
Set ComHideSelection to False
Send ComSelectLine 3
End_Procedure
|
119
|
How do I change the font to display the line numbers

Procedure OnCreate
Forward Send OnCreate
Variant voStdFont
Get ComLineNumberFont to voStdFont
Handle hoStdFont
Get Create (RefClass(cComStdFont)) to hoStdFont
Set pvComObject of hoStdFont to voStdFont
Set ComName of hoStdFont to "Tahoma"
Send Destroy to hoStdFont
Set ComLineNumberWidth to 18
End_Procedure
|
118
|
How can I change the height of the line

Procedure OnCreate
Forward Send OnCreate
Variant voStdFont
Get ComFont to voStdFont
Handle hoStdFont
Get Create (RefClass(cComStdFont)) to hoStdFont
Set pvComObject of hoStdFont to voStdFont
Set ComSize of hoStdFont to 32
Send Destroy to hoStdFont
Set ComDrawGridLines to True
Send ComRefresh
End_Procedure
|
117
|
How can I show or hide the grid lines

Procedure OnCreate
Forward Send OnCreate
Set ComDrawGridLines to True
End_Procedure
|
116
|
How do I highlight the position of multiple lines expression on the vertical scroll bar

Procedure OnCreate
Forward Send OnCreate
Set ComAllowMark to True
Set ComMarkContinueBlocks to True
Send ComAddKeyword "<b>CAxWnd" Nothing Nothing Nothing
Send ComAddExpression "<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>" "<b><fgcolor=FF0000> </fgcolor></b>" "<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>" True Nothing
Set ComMarkColor "BEGIN_MSG_MAP" to (RGB(255,0,0))
Set ComMarkColor "END_MSG_MAP" to (RGB(128,0,0))
Set ComMarkColor "CAxWnd" to (RGB(0,0,0))
Send ComRefresh
End_Procedure
|
115
|
How do I ignore \" in a string

Procedure OnCreate
Forward Send OnCreate
Send ComInsertText ""just a string \"expression"\r\n" 1
Send ComAddExpression "<fgcolor=800000><b>"</b></fgcolor>" "<b><fgcolor=FF0000> </fgcolor></b>" "<fgcolor=800000><b>"</b></fgcolor>" True Nothing
Set ComIgnorePrefixInExpression """ to "\"
Send ComRefresh
End_Procedure
|
114
|
How can I change the color for the line number's border

Procedure OnCreate
Forward Send OnCreate
Set ComLineNumberBorderColor to (RGB(255,0,0))
Set ComLineNumberWidth to 18
End_Procedure
|
113
|
How can I change the color for the bookmark's border

Procedure OnCreate
Forward Send OnCreate
Set ComBookmarkBorderColor to (RGB(255,0,0))
Set ComBookmarkWidth to 18
End_Procedure
|
112
|
Can I display a custom icon or picture for bookmarks

Procedure OnCreate
Forward Send OnCreate
Send ComImages "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
Set ComBookmarkImage to 1
Set ComBookmark 2 to True
Set ComBookmark 4 to True
Set ComBookmarkWidth to 18
End_Procedure
|
111
|
Can I display a custom icon or picture in the bookmark area

Procedure OnCreate
Forward Send OnCreate
Send ComImages "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
Set ComBookmarkImageLine 2 to 1
Set ComBookmark 4 to True
Set ComBookmarkWidth to 18
End_Procedure
|
110
|
How do I remove the line's background color
Procedure OnCreate
Forward Send OnCreate
Set ComBackColorLine 1 to (RGB(255,0,0))
Send ComClearBackColorLine 1
End_Procedure
|
109
|
How do I change the foreground color for a line

Procedure OnCreate
Forward Send OnCreate
Set ComForeColorLine 1 to (RGB(255,0,0))
End_Procedure
|
108
|
How do I change the background color for a line

Procedure OnCreate
Forward Send OnCreate
Set ComBackColorLine 1 to (RGB(255,0,0))
End_Procedure
|
107
|
How can I add my own items in the control's context menu

Procedure OnCreate
Forward Send OnCreate
Set ComContextMenuItems to "New Item"
End_Procedure
|
106
|
How do I ensure that a specified line is visible

Procedure OnCreate
Forward Send OnCreate
Send ComEnsureVisibleLine (ComCount(Self))
End_Procedure
|
105
|
How can I programmatically perform a REDO operation
Procedure OnCreate
Forward Send OnCreate
Send ComRedo
End_Procedure
|
104
|
How can I programmatically perform an UNDO operation
Procedure OnCreate
Forward Send OnCreate
Send ComUndo
End_Procedure
|
103
|
How do I get the bookmarks as a list

Procedure OnCreate
Forward Send OnCreate
Set ComBookmark 2 to True
Set ComBookmark 4 to True
Set ComBookmarkWidth to 16
Variant var_BookmarksList
Get ComBookmarksList to var_BookmarksList
End_Procedure
|
102
|
How can I move to the previous bookmark

Procedure OnCreate
Forward Send OnCreate
Set ComBookmark 2 to True
Set ComBookmark 4 to True
Set ComBookmarkWidth to 16
Send ComPrevBookmark
End_Procedure
|
101
|
How can I move to the next bookmark

Procedure OnCreate
Forward Send OnCreate
Set ComBookmark 2 to True
Set ComBookmark 4 to True
Set ComBookmarkWidth to 16
Send ComNextBookmark
End_Procedure
|