trichview.com

trichview.support




Re: Newbie: can't make InsertText position caret after text on TRVActionNew OnNew event


Return to index


Author

Message

Sergey Tkachenko

Posted: 08/27/2003 18:47:54


TrvActionNew calls Format after OnNew, and Format moves the caret to the

beginning.

There are some reasouns why I should not change this in the "standard"

version of RichViewActions, but you can change it in your copy:


Open RichViewActions.pas (the last version), find line 2418, and exchange

lines:

Reset(rve);

and

rve.Format;

After this change OnNew will be called after Format.




> (Working through documentation. Please don't feel obliged to answer what I

> expect will be flood of questions from me, but anyone looking in with time

> to spare to respond appreciated and I will do same when I get to know

> package better where I can ;;;)

>

> Presently cloning RichActionsTest with my own TActionList. The following

> doesn't do what I expected, in that the cursor remains positioned at the

> <beginning> of the string. What should I do?

>

> procedure TMainForm.rvActionNew1New(Sender: TObject);

> begin

>   RichViewEdit1.InsertText('Hello world! ', False);

> end;

>

> sincerely,

>

> William Boyd

>

>





Powered by ABC Amber Outlook Express Converter