trichview.com

trichview.support




Re: How to group undo set hyperlink?


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/09/2003 1:02:33


RichViewEdit1.BeginUndoGroup(rvutTag);

RichViewEdit1.SetUndoGroupMode(True);

try

  RichViewEdit1.ApplyTextStyle(UrlItemNo);

  SetURLToSelection(URL);

finally

  RichViewEdit1.SetUndoGroupMode(False);

end;



>

> In the example, set hyperlink need two step ;

> RichViewEdit1.ApplyTextStyle(UrlItemNo);

> SetURLToSelection(URL);

>

> It seems user need undo twice to restore the original state.

> How to set these BeginUndoGroup in program?

>

> Thanks.





Powered by ABC Amber Outlook Express Converter