155
|
How can I add a sensitive context menu

with Edit1 do
begin
AddKeyword('<b>class</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Null);
Refresh();
Context[Null].Add('class',Null,Null,Null);
end
|
154
|
Can I use wild characters to define keys in your control

with Edit1 do
begin
AddWild('<fgcolor=808080>(*)</fgcolor>');
Refresh();
end
|
153
|
Can I use wild characters to define keys in your control

with Edit1 do
begin
AddWild('_HANDLER<fgcolor=FF0000>(*)</fgcolor>');
Refresh();
end
|
152
|
How can I remove or delete all expressions

with Edit1 do
begin
AddExpression('(','<b><fgcolor=FF0000> </fgcolor></b>',')',OleVariant(False),Null);
ClearExpressions();
Refresh();
end
|
151
|
How can I remove or delete an expression

with Edit1 do
begin
AddExpression('(','<b><fgcolor=FF0000> </fgcolor></b>',')',OleVariant(False),Null);
DeleteExpression('(');
Refresh();
end
|
150
|
How can I add an expression

with Edit1 do
begin
AddExpression('(','<b><fgcolor=FF0000> </fgcolor></b>',')',OleVariant(False),Null);
Refresh();
end
|
149
|
How can I add an expression on multiple lines

with Edit1 do
begin
AddExpression('<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>','<b><fgcolor=FF0000> </fgcolor></b>','<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>',OleVariant(True),Null);
Refresh();
end
|
148
|
How can I remove or delete all keywords
with Edit1 do
begin
AddKeyword('<b><fgcolor=FF0000>class</fgcolor></b>',Null,Null,Null);
ClearKeywords();
Refresh();
end
|
147
|
How can I remove or delete keyword
with Edit1 do
begin
AddKeyword('<b><fgcolor=FF0000>class</fgcolor></b>',Null,Null,Null);
DeleteKeyword('class');
Refresh();
end
|
146
|
How do I add a keyword that's not case sensitive

with Edit1 do
begin
AddKeyword('<b><fgcolor=FF0000>class</fgcolor></b>','','',OleVariant(2));
Refresh();
InsertText('ClasS\r\n',OleVariant(1));
InsertText('CLASS\r\n',OleVariant(1));
end
|
145
|
How do I add a keyword that's not case sensitive

with Edit1 do
begin
AddKeyword('<fgcolor=FF0000>class</fgcolor>','','',OleVariant(1));
Refresh();
InsertText('ClasS\r\n',OleVariant(1));
InsertText('CLASS\r\n',OleVariant(1));
end
|
144
|
How can I assign a tooltip to a keyword

with Edit1 do
begin
AddKeyword('<fgcolor=FF0000>class</fgcolor>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Null);
Refresh();
end
|
143
|
How do I add a keyword

with Edit1 do
begin
AddKeyword('<fgcolor=FF0000>class</fgcolor>',Null,Null,Null);
Refresh();
end
|
142
|
How do I add a keyword

with Edit1 do
begin
AddKeyword('<b>class</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Null);
Refresh();
end
|
141
|
How can I display a tooltip as soon as the user types a keyword

with Edit1 do
begin
ToolTipDelay := 1;
ToolTipOnTyping := True;
AddKeyword('<b>class</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Null);
Refresh();
end
|
140
|
How do I change the color for a locked or a read only line

with Edit1 do
begin
ForeColorLockedLine := RGB(0,0,0);
BackColorLockedLine := RGB(255,0,0);
LockedLine[1] := True;
end
|
139
|
How do I lock or make read only a line

with Edit1 do
begin
LockedLine[1] := True;
end
|
138
|
How do I start overtyping

with Edit1 do
begin
Overtype := True;
end
|
137
|
How do I get the selection

with Edit1 do
begin
GetSelection(sy,sx,ey,ex);
OutputDebugString( sy );
OutputDebugString( sx );
OutputDebugString( ey );
OutputDebugString( ex );
end
|
136
|
How do I select multiple lines

with Edit1 do
begin
SetSelection(OleVariant(0),OleVariant(0),OleVariant(10),OleVariant(0));
HideSelection := False;
end
|
135
|
How can I change the shape of the cursor when it hovers the selected text

with Edit1 do
begin
Cursor[EXEDITLib_TLB.exSelectedText] := 'exHelp';
SelLength := 10;
HideSelection := False;
end
|
134
|
How can I change the shape of the cursor when it hovers the incremental search area

with Edit1 do
begin
Cursor[EXEDITLib_TLB.exIncrementalSearchArea] := 'exHelp';
end
|
133
|
How can I change the shape of the cursor when it hovers the line numbers area

with Edit1 do
begin
Cursor[EXEDITLib_TLB.exLineNumberArea] := 'exHelp';
LineNumberWidth := 16;
end
|
132
|
How can I change the shape of the cursor when it hovers the bookmark area

with Edit1 do
begin
Cursor[EXEDITLib_TLB.exBookmarkArea] := 'exHelp';
BookmarkWidth := 16;
end
|
131
|
How can I change the shape of the cursor when it hovers the edit
with Edit1 do
begin
Cursor[EXEDITLib_TLB.exEditArea] := 'exHelp';
end
|
130
|
How can I enable or disable OLE drag and drop operations
with Edit1 do
begin
OLEDropMode := EXEDITLib_TLB.exOLEDropAutomatic;
end
|
129
|
How can I change the descriptions for items in the control's context menu

with Edit1 do
begin
Caption[EXEDITLib_TLB.exContextMenu,EXEDITLib_TLB.exContextUndo] := 'U N D O';
Caption[EXEDITLib_TLB.exContextMenu,EXEDITLib_TLB.exContextRedo] := 'R E D O';
Caption[EXEDITLib_TLB.exContextMenu,EXEDITLib_TLB.exContextCut] := 'C U T';
Caption[EXEDITLib_TLB.exContextMenu,EXEDITLib_TLB.exContextCopy] := 'C O P Y';
Caption[EXEDITLib_TLB.exContextMenu,EXEDITLib_TLB.exContextPaste] := 'P A S T E';
Caption[EXEDITLib_TLB.exContextMenu,EXEDITLib_TLB.exContextDelete] := 'D E L';
Caption[EXEDITLib_TLB.exContextMenu,EXEDITLib_TLB.exContextSelectAll] := 'A L L ';
end
|
128
|
How can I change the descriptions for fields in the Replace dialog

with Edit1 do
begin
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exFieldFindWhat] := 'What';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exFieldReplaceWith] := 'Replace';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exFieldWordOnly] := 'Word';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exFieldMatchCase] := 'Case';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exFieldFindNext] := 'Dir';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exFieldSelection] := 'Sel';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exFieldWholeFile] := 'File';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exFieldReplace] := 'Rep';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exFieldReplaceAll] := 'All';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exFieldCancel] := 'Abandon';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exErrorTitle] := 'Title';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exErrorFindNext] := 'Failed!';
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exErrorFindNext] := 'Done';
end
|
127
|
How can I change the descriptions for fields in the Find dialog

with Edit1 do
begin
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exFieldFindWhat] := 'What';
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exFieldWordOnly] := 'Word';
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exFieldMatchCase] := 'Case';
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exFieldFindNext] := 'Dir';
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exFieldSelection] := 'U';
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exFieldWholeFile] := 'D';
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exFieldFindNext] := 'Next';
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exFieldReplace] := 'All';
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exFieldCancel] := 'Abandon';
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exErrorFindNext] := 'Failed!';
end
|
126
|
How can I change the caption for the Replace dialog

with Edit1 do
begin
Caption[EXEDITLib_TLB.exReplaceDialog,EXEDITLib_TLB.exCaption] := 'Search and Replace';
end
|
125
|
How can I change the caption for the Find dialog

with Edit1 do
begin
Caption[EXEDITLib_TLB.exFindDialog,EXEDITLib_TLB.exCaption] := 'Search';
end
|
124
|
How can I move the cursor when user invokes the control's context menu

with Edit1 do
begin
RClick := True;
end
|
123
|
How can I disable indenting the selected text when the user presses the TAB key
with Edit1 do
begin
IndentOnTab := False;
end
|
122
|
How can I indent a line

with Edit1 do
begin
LineNumberWidth := 18;
HideSelection := False;
SelectLine(3);
IndentSel(True);
end
|
121
|
How can I show or hide the control's splitter

with Edit1 do
begin
AllowSplitter := EXEDITLib_TLB.exBothSplitter;
SplitPaneHeight := 128;
SplitPaneWidth := 128;
end
|
120
|
How can I select a line

with Edit1 do
begin
LineNumberWidth := 18;
HideSelection := False;
SelectLine(3);
end
|
119
|
How do I change the font to display the line numbers

with Edit1 do
begin
LineNumberFont.Name := 'Tahoma';
LineNumberWidth := 18;
end
|
118
|
How can I change the height of the line

with Edit1 do
begin
Font.Size := 32;
DrawGridLines := True;
Refresh();
end
|
117
|
How can I show or hide the grid lines

with Edit1 do
begin
DrawGridLines := True;
end
|
116
|
How do I highlight the position of multiple lines expression on the vertical scroll bar

with Edit1 do
begin
AllowMark := True;
MarkContinueBlocks := True;
AddKeyword('<b>CAxWnd',Null,Null,Null);
AddExpression('<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>','<b><fgcolor=FF0000> </fgcolor></b>','<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>',OleVariant(True),Null);
MarkColor['BEGIN_MSG_MAP'] := $ff;
MarkColor['END_MSG_MAP'] := $80;
MarkColor['CAxWnd'] := $0;
Refresh();
end
|
115
|
How do I ignore \" in a string

with Edit1 do
begin
InsertText('"just a string \"expression"\r\n',OleVariant(1));
AddExpression('<fgcolor=800000><b>"</b></fgcolor>','<b><fgcolor=FF0000> </fgcolor></b>','<fgcolor=800000><b>"</b></fgcolor>',OleVariant(True),Null);
IgnorePrefixInExpression['"'] := '\';
Refresh();
end
|
114
|
How can I change the color for the line number's border

with Edit1 do
begin
LineNumberBorderColor := RGB(255,0,0);
LineNumberWidth := 18;
end
|
113
|
How can I change the color for the bookmark's border

with Edit1 do
begin
BookmarkBorderColor := RGB(255,0,0);
BookmarkWidth := 18;
end
|
112
|
Can I display a custom icon or picture for bookmarks

with Edit1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
BookmarkImage := 1;
Bookmark[2] := True;
Bookmark[4] := True;
BookmarkWidth := 18;
end
|
111
|
Can I display a custom icon or picture in the bookmark area

with Edit1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
BookmarkImageLine[2] := 1;
Bookmark[4] := True;
BookmarkWidth := 18;
end
|
110
|
How do I remove the line's background color
with Edit1 do
begin
BackColorLine[1] := $ff;
ClearBackColorLine(1);
end
|
109
|
How do I change the foreground color for a line

with Edit1 do
begin
ForeColorLine[1] := $ff;
end
|
108
|
How do I change the background color for a line

with Edit1 do
begin
BackColorLine[1] := $ff;
end
|
107
|
How can I add my own items in the control's context menu

with Edit1 do
begin
ContextMenuItems := 'New Item';
end
|
106
|
How do I ensure that a specified line is visible

with Edit1 do
begin
EnsureVisibleLine(Count);
end
|
105
|
How can I programmatically perform a REDO operation
with Edit1 do
begin
Redo();
end
|
104
|
How can I programmatically perform an UNDO operation
with Edit1 do
begin
Undo();
end
|
103
|
How do I get the bookmarks as a list

with Edit1 do
begin
Bookmark[2] := True;
Bookmark[4] := True;
BookmarkWidth := 16;
var_BookmarksList := BookmarksList;
end
|
102
|
How can I move to the previous bookmark

with Edit1 do
begin
Bookmark[2] := True;
Bookmark[4] := True;
BookmarkWidth := 16;
PrevBookmark();
end
|
101
|
How can I move to the next bookmark

with Edit1 do
begin
Bookmark[2] := True;
Bookmark[4] := True;
BookmarkWidth := 16;
NextBookmark();
end
|