View previous topic :: View next topic |
Author |
Message |
jfcarbel
Joined: 13 Jun 2006 Posts: 27
|
Posted: Thu Jun 15, 2006 6:22 am Post subject: Autocomplete StartString |
|
|
Posted by: Guest (IP Logged)
Date: March 24, 2006 08:35PM
Is there a way to specify the AutoComplete to start at any character instead of a start string? One way I did this was in the KeyPress event set the StartString to whatever key was pressed but this is painfully slow. |
|
Back to top |
|
|
jfcarbel
Joined: 13 Jun 2006 Posts: 27
|
Posted: Thu Jun 15, 2006 6:23 am Post subject: |
|
|
Posted by: econtrol (IP Logged)
Date: April 04, 2006 10:39AM
You may run autocompletion manually.
Write OnTextChanged event handler and run autocompletion.
Example:
Code: | procedure TForm1.EditorTextChanged(Sender: TObject; Pos, Count, LineChange: Integer);
begin
// execution of auto-complete after first char input
if (Count = 1) and IsLetter(Editor.Lines.Chars[Pos + 1]) and
(Pos > 0) and not IsWordChar(Editor.Lines.Chars[Pos]) then
AutoCompletePopup1.Execute;
end; |
Michael. |
|
Back to top |
|
|
|