Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Q: How to use TiEditView

0 views
Skip to first unread message

Jan-Erik Johansson

unread,
Nov 15, 1996, 3:00:00 AM11/15/96
to

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 ?

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

Ray Lischner

unread,
Nov 15, 1996, 3:00:00 AM11/15/96
to

On Fri, 15 Nov 1996 08:47:13 +0100, Jan-Erik Johansson
<ree...@niepce.ericsson.se> wrote:

>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/)

0 new messages