205
|
Is it possible to show just expressions
with AxEdit1 do
begin
AddWild('<fgcolor=00FF00>(');
AddWild('<fgcolor=00FF00>)');
AddExpression('<fgcolor=FF0000><b>(*','<fgcolor=FF0000> ','<fgcolor=FF0000><b>*)',Nil,Nil);
InsertText('some text ( another text ) other text\r\n',TObject(1));
InsertText('some text (* another text *) other text\r\n',TObject(1));
Show := 'expression';
end
|
204
|
How can I stop any highlight
with AxEdit1 do
begin
AddWild('<fgcolor=00FF00>(');
AddWild('<fgcolor=00FF00>)');
AddExpression('<fgcolor=FF0000><b>(*','<fgcolor=FF0000> ','<fgcolor=FF0000><b>*)',Nil,Nil);
InsertText('some text ( another text ) other text\r\n',TObject(1));
InsertText('some text (* another text *) other text\r\n',TObject(1));
Show := '';
end
|
203
|
How can I highlight the start of the line until a specified character is found

with AxEdit1 do
begin
AddExpression('^','<fgcolor=FF0000> ',':',Nil,Nil);
Refresh();
end
|
202
|
Can I use code completion without any UI
with AxEdit1 do
begin
CodeCompletion := EXEDITLib.CodeCompletionEnum.exCodeCompletionEnableNoUI;
AddKeyword('<b>class</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Nil);
Refresh();
get_Context(Nil).Add('class',Nil,Nil,Nil);
end
|
201
|
How can I hide the control's horizontal scroll bar
with AxEdit1 do
begin
ScrollBars := EXEDITLib.ScrollBarsEnum.exVertical;
end
|
200
|
Is it possible to change the line's height

with AxEdit1 do
begin
LineHeight := 'value + 8 * dpi';
DrawGridLines := True;
end
|
199
|
How to bold everything between two * (asterisk) characters

with AxEdit1 do
begin
with Font do
begin
Name := 'Consolas';
Size := 12;
end;
AddExpression('<fgcolor=FF0000><b>*','<fgcolor=FF0000> ','<fgcolor=FF0000><b>*',Nil,Nil);
InsertText('some text * another text * other text\r\n',TObject(1));
Refresh();
end
|
198
|
How to bold everything that starts with * (asterisk), to the end of the line

with AxEdit1 do
begin
with Font do
begin
Name := 'Consolas';
Size := 12;
end;
AddWild('<fgcolor=FF0000><b>\**');
InsertText('some text * another text * other text\r\n',TObject(1));
Refresh();
end
|
197
|
How to make a * (asterisk) bold, not the entire / rest line

with AxEdit1 do
begin
with Font do
begin
Name := 'Consolas';
Size := 12;
end;
AddWild('<fgcolor=FF0000><b>\*');
InsertText('some text * another text * other text\r\n',TObject(1));
Refresh();
end
|
196
|
How can I change the control's font (template)

with AxEdit1 do
begin
Template := 'Font { Name = `Consolas`; Size = 12 }';
AddKeyword('<fgcolor=FF0000>class</fgcolor>',Nil,Nil,Nil);
Refresh();
end
|
195
|
How can I change the control's font (runtime)

with AxEdit1 do
begin
with Font do
begin
Name := 'Consolas';
Size := 12;
end;
AddKeyword('<fgcolor=FF0000>class</fgcolor>',Nil,Nil,Nil);
Refresh();
end
|
194
|
When I click and drag to try and select some text, sometimes my cursor turns into a hand and drags the whole text in the window around. I would like to disable this feature, could you tell me what it is called so I can disable it please
with AxEdit1 do
begin
OLEDropMode := EXEDITLib.exOLEDropModeEnum.exOLEDropAutomatic;
end
|
193
|
How can I display information about events the control fires

// Event event - Notifies the application once the control fires an event.
procedure TWinForm1.AxEdit1_Event(sender: System.Object; e: AxEXEDITLib._IEditEvents_EventEvent);
begin
with AxEdit1 do
begin
OutputDebugString( get_EventParam(-2) );
end
end;
with AxEdit1 do
begin
AddWild('<fgcolor=808080>(?*)</fgcolor>');
AddKeyword('<b>class</b>','a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality' +
'',Nil,Nil);
Refresh();
end
|
192
|
How do I highlights words based on wild characters

with AxEdit1 do
begin
AddWild('<fgcolor=0000FF><b>[MC]*_HANDLER*</b></fgcolor>(*)');
Refresh();
end
|
191
|
How do I highlights words based on wild characters

with AxEdit1 do
begin
AddWild('<fgcolor=0000FF><b> *</b></fgcolor>(*)*;');
Refresh();
end
|
190
|
How can I provide different tooltip for the same keyword

// QueryContext event - Queries for the context at the specified location, to provide different tooltips for the same keyword on QueryContextToolTip event.
procedure TWinForm1.AxEdit1_QueryContext(sender: System.Object; e: AxEXEDITLib._IEditEvents_QueryContextEvent);
begin
with AxEdit1 do
begin
e.qContext := e.yCursor;
end
end;
// QueryContextToolTip event - Asks for the tooltip/title of the keyword on the context retrieved by the QueryContext event.
procedure TWinForm1.AxEdit1_QueryContextToolTip(sender: System.Object; e: AxEXEDITLib._IEditEvents_QueryContextToolTipEvent);
begin
with AxEdit1 do
begin
e.qToolTip := e.qContext;
e.qToolTipTitle := 'Keyword Found At Line:';
end
end;
with AxEdit1 do
begin
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
AddKeyword('<fgcolor=FF0000><b>keyword</b></fgcolor>',Nil,Nil,Nil);
Text := '';
InsertText('here''s the keyword on the first line',Nil);
InsertText('\r\nhere''s the keyword on the second line',Nil);
InsertText('\r\nhere''s the keyword on the third line',Nil);
end
|
189
|
Is it possible to left, right or center align the inline tooltip

with AxEdit1 do
begin
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
CaretLine := 6;
set_Background(EXEDITLib.BackgroundPartEnum.exTempInlineToolTipBackColor,$f0f0f0);
TempInlineToolTip := '<font ;6>Left Alignment<br><c>Center Alignment<br><r>Right Alignment';
Refresh();
end
|
188
|
Is it possible to display the inline tooltip with a different appearance than temporarily inline tooltip

with AxEdit1 do
begin
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
AddKeyword('<b>class</b>','<r>a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qual' +
'ity.',Nil,Nil);
AllowInlineToolTip := Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap) Or Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTip);
set_Background(EXEDITLib.BackgroundPartEnum.exInlineToolTipForeColor,$808080);
set_Background(EXEDITLib.BackgroundPartEnum.exInlineToolTipBackColor,$f0f0f0);
CaretLine := 6;
set_Background(EXEDITLib.BackgroundPartEnum.exTempInlineToolTipBackColor,$28ff);
set_Background(EXEDITLib.BackgroundPartEnum.exTempInlineToolTipForeColor,$10000);
TempInlineToolTip := '<br><c><font ;12>This is a bit of text that''s shown temporarily only. <br><c>Now, click the <off -4><b>class</b></off> keyword, ' +
'in the top...<br>';
Refresh();
end
|
187
|
How can I display the inline tooltip over the lines, instead pushing the lines

with AxEdit1 do
begin
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
set_Background(EXEDITLib.BackgroundPartEnum.exTempInlineToolTipBackColor,$ffff);
CaretLine := 3;
TempInlineToolTip := 'This is a bit of text that''s shown under the current line, and it is displayed as soon as the control''s caret is changed.';
AllowInlineToolTip := Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap) Or Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipOver);
Refresh();
end
|
186
|
Is it possible to display the inline tooltip all the time

// SelChange event - Occurs when the user selects text in the control.
procedure TWinForm1.AxEdit1_SelChange(sender: System.Object; e: System.EventArgs);
begin
with AxEdit1 do
begin
TempInlineToolTip := 'This is a bit of text that''s shown under the current line, and it is displayed as soon as the control''s caret is changed.';
end
end;
with AxEdit1 do
begin
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
set_Background(EXEDITLib.BackgroundPartEnum.exTempInlineToolTipBackColor,$ffff);
CaretLine := 12;
AllowInlineToolTip := EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap;
Refresh();
end
|
185
|
Is it possible to display images in the inline tooltip

with AxEdit1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
CaretLine := 4;
set_Background(EXEDITLib.BackgroundPartEnum.exTempInlineToolTipBackColor,$1000000);
AllowInlineToolTip := EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap;
TempInlineToolTip := '<img>1</img>This is a bit of text that''s shown programatically under the current line';
end
|
184
|
How can I change the visual appearance of the temporarily inline tooltip

with AxEdit1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
CaretLine := 4;
set_Background(EXEDITLib.BackgroundPartEnum.exTempInlineToolTipBackColor,$1000000);
AllowInlineToolTip := EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap;
TempInlineToolTip := 'This is a bit of text that''s shown programatically under the current line';
end
|
183
|
How can I display programmatically the inline tooltip, but using word-wrapping

with AxEdit1 do
begin
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
CaretLine := 4;
set_Background(EXEDITLib.BackgroundPartEnum.exTempInlineToolTipBackColor,$f0f0f0);
AllowInlineToolTip := EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap;
TempInlineToolTip := 'This is a bit of text that''s shown programatically under the current line';
end
|
182
|
How can I display programmatically the inline tooltip

with AxEdit1 do
begin
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
CaretLine := 4;
set_Background(EXEDITLib.BackgroundPartEnum.exTempInlineToolTipBackColor,$f0f0f0);
TempInlineToolTip := '<br><c>This is a bit of text that''s shown programatically under the current line<br>';
end
|
181
|
How can I show the inline tooltip with a different appearance

with AxEdit1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
AddKeyword('<b>class</b>','a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality' +
'.',Nil,Nil);
AllowInlineToolTip := Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap) Or Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTip);
set_Background(EXEDITLib.BackgroundPartEnum.exInlineToolTipBackColor,$1000000);
set_Background(EXEDITLib.BackgroundPartEnum.exInlineToolTipForeColor,$80);
Refresh();
end
|
180
|
Is it possible to prevent moving the lines after the inline tooltip

with AxEdit1 do
begin
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
AddKeyword('<b>class</b>','a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality' +
'.',Nil,Nil);
AllowInlineToolTip := Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap) Or Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipOver) Or Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTip);
set_Background(EXEDITLib.BackgroundPartEnum.exInlineToolTipBackColor,$ffff);
Refresh();
end
|
179
|
How can I display the inline tooltip, when typing only

with AxEdit1 do
begin
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
ToolTipOnTyping := False;
AddKeyword('<b>class</b>','a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality' +
'.',Nil,Nil);
AllowInlineToolTip := Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap) Or Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipOnChange);
set_Background(EXEDITLib.BackgroundPartEnum.exInlineToolTipBackColor,$f0f0f0);
Refresh();
end
|
178
|
How do I enable the inline tooltip support

with AxEdit1 do
begin
LineNumberWidth := -1;
LineNumberBackColor := Color.FromArgb(240,240,240);
AddKeyword('<b>class</b>','a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality' +
'.',Nil,Nil);
AllowInlineToolTip := Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap) Or Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTip);
set_Background(EXEDITLib.BackgroundPartEnum.exInlineToolTipForeColor,$808080);
Refresh();
end
|
177
|
How do I display a tooltip for a non-keyword

// MouseMove event - Occurs when the user moves the mouse.
procedure TWinForm1.AxEdit1_MouseMoveEvent(sender: System.Object; e: AxEXEDITLib._IEditEvents_MouseMoveEvent);
begin
with AxEdit1 do
begin
ShowToolTip(get_WordFromPoint(-1,-1,Nil),Nil,Nil,'+8','+8');
end
end;
|
176
|
How do I get the text from the cursor

// MouseMove event - Occurs when the user moves the mouse.
procedure TWinForm1.AxEdit1_MouseMoveEvent(sender: System.Object; e: AxEXEDITLib._IEditEvents_MouseMoveEvent);
begin
with AxEdit1 do
begin
OutputDebugString( get_WordFromPoint(-1,-1,Nil) );
end
end;
|
175
|
I've noticed that while I type, the control's sensitive context selects the item that contains the typing word, so the question is how can I disable it
with AxEdit1 do
begin
with get_Context(Nil) do
begin
Add('exText',Nil,Nil,Nil);
Add('exHTML',Nil,Nil,Nil);
Options[EXEDITLib.ContextOptionEnum.exContextDisableIncrementalSearchContains] := TObject(True);
end;
Text := '';
InsertText('Press CTRL+SPACE, and type h, so the exHTML is not selected.',Nil);
end
|
174
|
I have a context that inserts some comments, it is possible to set the cursor before comment begins, when user selects a value from the control's sensitive context
with AxEdit1 do
begin
AddExpression('<fgcolor=008000>''</fgcolor>','<fgcolor=008000> </fgcolor>','',Nil,Nil);
with get_Context(Nil) do
begin
Add('exText (0)','0 '' specifies the exText flag',Nil,Nil);
Add('exHTML (-1)','-1 '' specifies the exHTML flag',Nil,Nil);
Options[EXEDITLib.ContextOptionEnum.exContextInsertCaretPos] := '(0:=value lfind `''`) < 0 ? -1 : ( =:0 - (len(1:=(value left =:0)) - len(ltrim(reverse(=:1)))))';
end;
Text := '';
InsertText('Press CTRL + SPACE, and select any item, a number is inserted',Nil);
end
|
173
|
How can I show a different sensitive context when user press a key/character

// Change event - Indicates that the control's text have changed.
procedure TWinForm1.AxEdit1_Change(sender: System.Object; e: System.EventArgs);
begin
with AxEdit1 do
begin
ShowContext(TObject(ChangeOnKey));
ActiveContextItems := '';
end
end;
with AxEdit1 do
begin
Text := '';
InsertText('Press .(dot), :(color) or =(equal), to get different sensitive context',Nil);
ActiveContextItems := '';
with get_Context('61') do
begin
Add('Equal_1',Nil,Nil,Nil);
Add('Equal_2',Nil,Nil,Nil);
end;
with get_Context('46') do
begin
Add('Dot_1',Nil,Nil,Nil);
Add('Dot_2',Nil,Nil,Nil);
end;
with get_Context('58') do
begin
Add('Colon_1',Nil,Nil,Nil);
Add('Colon_2',Nil,Nil,Nil);
end;
end
|
172
|
How can I allow spaces when control's sentitive context is shown/opened

// Change event - Indicates that the control's text have changed.
procedure TWinForm1.AxEdit1_Change(sender: System.Object; e: System.EventArgs);
begin
with AxEdit1 do
begin
ShowContext(TObject(ChangeOnKey));
ActiveContextItems := '';
end
end;
with AxEdit1 do
begin
with get_Context('61') do
begin
Add('True (-1)','True',Nil,Nil);
Add('False (-1)','False',Nil,Nil);
Options[EXEDITLib.ContextOptionEnum.exContextAllowSpaceOnFront] := TObject(True);
end;
Text := '';
InsertText('Press the = key and after that press the space keys',Nil);
InsertText('',Nil);
end
|
171
|
How can I display more pages on the control's senitive context

with AxEdit1 do
begin
with get_Context(Nil) do
begin
Add('First_1',Nil,Nil,Nil);
Add('First_2',Nil,Nil,Nil);
end;
with get_Context('Second') do
begin
Add('Second_1',Nil,Nil,Nil);
Add('Second_2',Nil,Nil,Nil);
Add('Second_3',Nil,Nil,Nil);
end;
ActiveContextItems := 'Second';
PagesContextItems := ':Page<font ;6><off -4>1</off></font>,Second:Page<font ;6><off -4>2</off></font>';
end
|
170
|
Is it possible to disable showing tooltip for items in the control's senitive context
with AxEdit1 do
begin
with get_Context(Nil) do
begin
Add('Column',Nil,Nil,Nil);
Options[EXEDITLib.ContextOptionEnum.exContextItemToolTip] := 'This is bit of text that shown when user selects the <b>Column</b> item.';
Add('Item',Nil,Nil,Nil);
Options[EXEDITLib.ContextOptionEnum.exContextItemToolTip] := 'This is bit of text that shown when user selects the <b>Item</b> item.';
Options[EXEDITLib.ContextOptionEnum.exContextAllowToolTip] := TObject(False);
end;
end
|
169
|
How can I assign tooltips for items in the control's senitive context

with AxEdit1 do
begin
with get_Context(Nil) do
begin
Add('Column',Nil,Nil,Nil);
Options[EXEDITLib.ContextOptionEnum.exContextItemToolTip] := 'This is bit of text that shown when user selects the <b>Column</b> item.';
Add('Item',Nil,Nil,Nil);
Options[EXEDITLib.ContextOptionEnum.exContextItemToolTip] := 'This is bit of text that shown when user selects the <b>Item</b> item.';
end;
end
|
168
|
By default, the control shows the Context(""). How can I display other items

// OnContext event - Occurs when the user invokes the control's context window.
procedure TWinForm1.AxEdit1_OnContext(sender: System.Object; e: AxEXEDITLib._IEditEvents_OnContextEvent);
begin
with AxEdit1 do
begin
OutputDebugString( 'CurrentContext:' );
OutputDebugString( e.context );
ActiveContextItems := 'Second';
end
end;
with AxEdit1 do
begin
with get_Context(Nil) do
begin
Add('First_1',Nil,Nil,Nil);
Add('First_2',Nil,Nil,Nil);
end;
with get_Context('Second') do
begin
Add('Second_1',Nil,Nil,Nil);
Add('Second_2',Nil,Nil,Nil);
Add('Second_3',Nil,Nil,Nil);
end;
end
|
167
|
How can I show the control's sensitive context

// DblClick event - Occurs when the user double clicks the left mouse button over an object.
procedure TWinForm1.AxEdit1_DblClick(sender: System.Object; e: AxEXEDITLib._IEditEvents_DblClickEvent);
begin
with AxEdit1 do
begin
ShowContext('DB');
end
end;
with AxEdit1 do
begin
with get_Context('DB') do
begin
Add('BEGIN_MSG_MAP',Nil,Nil,Nil);
Add('<fgcolor=808080>MESSAGE_HANDLER',Nil,Nil,Nil);
Add('<fgcolor=808080>COMMAND_HANDLER',Nil,Nil,Nil);
Add('END_MSG_MAP',Nil,Nil,Nil);
end;
end
|
166
|
How can I provide different sensitive context

// Change event - Indicates that the control's text have changed.
procedure TWinForm1.AxEdit1_Change(sender: System.Object; e: System.EventArgs);
begin
with AxEdit1 do
begin
ShowContext(TObject(ChangeOnKey));
end
end;
with AxEdit1 do
begin
Text := '';
InsertText('Press .(dot), :(colon) or CTRL + SPACE to invoke the control''s context',Nil);
with get_Context(Nil) do
begin
Add('General_1',Nil,Nil,Nil);
Add('General_2',Nil,Nil,Nil);
end;
with get_Context('46') do
begin
Add('Property_1',Nil,Nil,Nil);
Add('Property_2',Nil,Nil,Nil);
Add('Property_3',Nil,Nil,Nil);
end;
with get_Context('58') do
begin
Add('Method_1',Nil,Nil,Nil);
Add('Method_2',Nil,Nil,Nil);
Add('Method_3',Nil,Nil,Nil);
end;
end
|
165
|
How can I change the control's background/foreground colors while the control is locked/read-only

with AxEdit1 do
begin
Locked := True;
SelBackColor := Color.FromArgb(128,128,128);
ForeColorLockedLine := Color.FromArgb(128,128,128);
BackColorLockedLine := Color.FromArgb(255,255,255);
end
|
164
|
How can change the color for selected text, when the control has no focus

with AxEdit1 do
begin
HideSelection := False;
SelLength := 10;
SelBackColorHide := Color.FromArgb(255,0,0);
end
|
163
|
How do I change the "Incremental Search" caption

with AxEdit1 do
begin
set_Cursor(EXEDITLib.ClientAreaEnum.exIncrementalSearchArea,'exHelp');
set_Caption(EXEDITLib.DialogEnum.exIncrementalSearchField,EXEDITLib.FieldDialogEnum.exCaption,'Search for: %s');
IncrementalSearchError := Color.FromArgb(255,0,0);
end
|
162
|
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client area

with AxEdit1 do
begin
ScrollBars := EXEDITLib.ScrollBarsEnum.exBoth;
set_ScrollPartVisible(EXEDITLib.ScrollBarEnum.exVScroll,EXEDITLib.ScrollPartEnum.exExtentThumbPart,True);
set_ScrollPartVisible(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exExtentThumbPart,True);
set_ScrollPartVisible(EXEDITLib.ScrollBarEnum($2),EXEDITLib.ScrollPartEnum.exExtentThumbPart,True);
ScrollWidth := 4;
set_Background(EXEDITLib.BackgroundPartEnum.exVSBack,$f0f0f0);
set_Background(EXEDITLib.BackgroundPartEnum.exVSThumb,$808080);
ScrollHeight := 4;
set_Background(EXEDITLib.BackgroundPartEnum.exHSBack,get_Background(EXEDITLib.BackgroundPartEnum.exVSBack));
set_Background(EXEDITLib.BackgroundPartEnum.exHSThumb,get_Background(EXEDITLib.BackgroundPartEnum.exVSThumb));
set_Background(EXEDITLib.BackgroundPartEnum.exSizeGrip,get_Background(EXEDITLib.BackgroundPartEnum.exVSBack));
end
|
161
|
How can I get ride of control's horizontal scroll bar

with AxEdit1 do
begin
AddKeyword('<b>CExHelperDialog</b>',Nil,Nil,Nil);
Refresh();
ScrollBars := EXEDITLib.ScrollBarsEnum.exVertical;
end
|
160
|
How do I specify the characters to close the sensitive context

with AxEdit1 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=');
AddKeyword('<b>class</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Nil);
AddKeyword('<b>public</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Nil);
Refresh();
with get_Context(Nil) do
begin
Add('<b>class</b>','',TObject(1),Nil);
Add('<b>public</b>','',TObject(2),Nil);
Options[EXEDITLib.ContextOptionEnum.exContextAllowChars] := '_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
end;
end
|
159
|
How do I sort items in the sensitive context

with AxEdit1 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=');
AddKeyword('<b>class</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Nil);
AddKeyword('<b>public</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Nil);
Refresh();
get_Context(Nil).Add('<b>public</b>','',TObject(2),Nil);
get_Context(Nil).Add('<b>class</b>','',TObject(1),Nil);
get_Context(Nil).Sort(True);
end
|
158
|
Can I add icons to the sensitive context

with AxEdit1 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=');
AddKeyword('<b>class</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Nil);
Refresh();
get_Context(Nil).Add('<b>class</b>','',TObject(1),Nil);
end
|
157
|
How can I change the keys combination that invokes the sensitive context

with AxEdit1 do
begin
ContextKey := 544;
AddKeyword('<b>class</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Nil);
Refresh();
get_Context(Nil).Add('class',Nil,Nil,Nil);
end
|
156
|
How do I enable or disable the sensitive context menu
with AxEdit1 do
begin
CodeCompletion := EXEDITLib.CodeCompletionEnum.exCodeCompletionDisable;
AddKeyword('<b>class</b>','this is a bit of text that''s shown when the cursor hovers the <b>class</b> keyword.','exontrol.edit',Nil);
Refresh();
get_Context(Nil).Add('class',Nil,Nil,Nil);
end
|
155
|
How can I add a sensitive context menu

with AxEdit1 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',Nil);
Refresh();
get_Context(Nil).Add('class',Nil,Nil,Nil);
end
|
154
|
Can I use wild characters to define keys in your control

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

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

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

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

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

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

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

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

with AxEdit1 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',Nil);
Refresh();
end
|
143
|
How do I add a keyword

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

with AxEdit1 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',Nil);
Refresh();
end
|
141
|
How can I display a tooltip as soon as the user types a keyword

with AxEdit1 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',Nil);
Refresh();
end
|
140
|
How do I change the color for a locked or a read only line

with AxEdit1 do
begin
ForeColorLockedLine := Color.FromArgb(0,0,0);
BackColorLockedLine := Color.FromArgb(255,0,0);
set_LockedLine(1,True);
end
|
139
|
How do I lock or make read only a line

with AxEdit1 do
begin
set_LockedLine(1,True);
end
|
138
|
How do I start overtyping

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

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

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

with AxEdit1 do
begin
set_Cursor(EXEDITLib.ClientAreaEnum.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 AxEdit1 do
begin
set_Cursor(EXEDITLib.ClientAreaEnum.exIncrementalSearchArea,'exHelp');
end
|
133
|
How can I change the shape of the cursor when it hovers the line numbers area

with AxEdit1 do
begin
set_Cursor(EXEDITLib.ClientAreaEnum.exLineNumberArea,'exHelp');
LineNumberWidth := 16;
end
|
132
|
How can I change the shape of the cursor when it hovers the bookmark area

with AxEdit1 do
begin
set_Cursor(EXEDITLib.ClientAreaEnum.exBookmarkArea,'exHelp');
BookmarkWidth := 16;
end
|
131
|
How can I change the shape of the cursor when it hovers the edit
with AxEdit1 do
begin
set_Cursor(EXEDITLib.ClientAreaEnum.exEditArea,'exHelp');
end
|
130
|
How can I enable or disable OLE drag and drop operations
with AxEdit1 do
begin
OLEDropMode := EXEDITLib.exOLEDropModeEnum.exOLEDropAutomatic;
end
|
129
|
How can I change the descriptions for items in the control's context menu

with AxEdit1 do
begin
set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextUndo,'U N D O');
set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextRedo,'R E D O');
set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextCut,'C U T');
set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextCopy,'C O P Y');
set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextPaste,'P A S T E');
set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextDelete,'D E L');
set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextSelectAll,'A L L ');
end
|
128
|
How can I change the descriptions for fields in the Replace dialog

with AxEdit1 do
begin
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldFindWhat,'What');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldReplaceWith,'Replace');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldWordOnly,'Word');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldMatchCase,'Case');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldFindNext,'Dir');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldSelection,'Sel');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldWholeFile,'File');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldReplace,'Rep');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldReplaceAll,'All');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldCancel,'Abandon');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exErrorTitle,'Title');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exErrorFindNext,'Failed!');
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exErrorFindNext,'Done');
end
|
127
|
How can I change the descriptions for fields in the Find dialog

with AxEdit1 do
begin
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldFindWhat,'What');
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldWordOnly,'Word');
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldMatchCase,'Case');
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldFindNext,'Dir');
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldSelection,'U');
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldWholeFile,'D');
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldFindNext,'Next');
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldReplace,'All');
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldCancel,'Abandon');
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exErrorFindNext,'Failed!');
end
|
126
|
How can I change the caption for the Replace dialog

with AxEdit1 do
begin
set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exCaption,'Search and Replace');
end
|
125
|
How can I change the caption for the Find dialog

with AxEdit1 do
begin
set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exCaption,'Search');
end
|
124
|
How can I move the cursor when user invokes the control's context menu

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

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

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

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

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

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

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

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

with AxEdit1 do
begin
InsertText('"just a string \"expression"\r\n',TObject(1));
AddExpression('<fgcolor=800000><b>"</b></fgcolor>','<b><fgcolor=FF0000> </fgcolor></b>','<fgcolor=800000><b>"</b></fgcolor>',TObject(True),Nil);
set_IgnorePrefixInExpression('"','\');
Refresh();
end
|
114
|
How can I change the color for the line number's border

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

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

with AxEdit1 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;
set_Bookmark(2,True);
set_Bookmark(4,True);
BookmarkWidth := 18;
end
|
111
|
Can I display a custom icon or picture in the bookmark area

with AxEdit1 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=');
set_BookmarkImageLine(2,1);
set_Bookmark(4,True);
BookmarkWidth := 18;
end
|
110
|
How do I remove the line's background color
with AxEdit1 do
begin
set_BackColorLine(1,$ff);
ClearBackColorLine(1);
end
|
109
|
How do I change the foreground color for a line

with AxEdit1 do
begin
set_ForeColorLine(1,$ff);
end
|
108
|
How do I change the background color for a line

with AxEdit1 do
begin
set_BackColorLine(1,$ff);
end
|
107
|
How can I add my own items in the control's context menu

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

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

with AxEdit1 do
begin
set_Bookmark(2,True);
set_Bookmark(4,True);
BookmarkWidth := 16;
var_BookmarksList := BookmarksList;
end
|
102
|
How can I move to the previous bookmark

with AxEdit1 do
begin
set_Bookmark(2,True);
set_Bookmark(4,True);
BookmarkWidth := 16;
PrevBookmark();
end
|
101
|
How can I move to the next bookmark

with AxEdit1 do
begin
set_Bookmark(2,True);
set_Bookmark(4,True);
BookmarkWidth := 16;
NextBookmark();
end
|