Good day
Please I need a sample how show code completion list in TscrMemo or Tidememo.
I want see list when I put "." after object in memo.
How indicate to Scripter about the object
Thanks
wlandgraf
(Wagner Landgraf)
November 9, 2015, 1:04am
2
Is there something that is preventing you to use TIDEEngine? If you use it and attached a TIDEMemo to it, it's automatic, it already opens the code completion window.
Thanks,
yes, I used TIDEEngine and TIDEMemo, Then I put following code in the button1:
procedure Tgengine.Button1Click(Sender: TObject);
var aunit: tideprojectfile;
AScripter: TIDEScripter;
begin
AScripter := TIDEScripter.Create(nil);
ideengine1.Scripter:=AScripter;
aunit:=ideengine1.NewUnit(slbasic);
AScripter.AddObject('form1',self);
AScripter.AddForm(self);
end;
But when I put "." or press Ctrl+Space, not opens the code completion for "form1."
wlandgraf
(Wagner Landgraf)
November 13, 2015, 7:17pm
4
It works just fine here in a test. Did you assign
IdeEngine1.Memo := Memo1;
and also created at least one new project with one blank unit? Like this:
IDEEngine1.NewUnit(TScriptLanguage.slPascal);
Wagner Landgraf2015-11-13 19:17:21