Var Viewer : TiEditView;
EditPos : TiEditPos;
Begin
Try
Viewer:=TieditView.Create;
EditPos:=Viewer.CursorPos
Finally
Viewer.Free
end;
end;
Q: What is wrong with the create line ?
ps. There might be some syntax faults above since i tok it from
my head, i frogot the code at home.
All help deeply appreciated
>I am trying to use TiEditView without success.
>
>Var Viewer : TiEditView;
> EditPos : TiEditPos;
>Begin
> Try
> Viewer:=TieditView.Create;
> EditPos:=Viewer.CursorPos
> Finally
> Viewer.Free
> end;
>end;
>
>Q: What is wrong with the create line ?
To obtain an edit view, you must call an appropriate method of
TIEditorInterface. To object the editor interface object, you must
call TIModuleInterface.GetEditorInterface. To obtain the module
interface object, you must call TIToolServices.GetModuleInterface.
--
Ray Lischner, Tempest Software, Inc., Corvallis, Oregon, USA
Author of Secrets of Delphi 2 (http://www.tempest-sw.com/secrets/)