trichview.support
Re: inserting items to any place of a document |
Author |
Message |
Yernar Shambayev |
Posted: 06/10/2003 5:18:15 Yes, it's possible to insert text or other style item to any place of a document (see InsertRVFFromStream method, that's the only method of RichView, not RichViewEdit, which can insert items in any position). And it's also possible to move caret programmatically. Example of moving a caret to the beginning of a document: var ItemNo, Offs: Integer; ItemNo := 0; Offs := RichViewEdit.GetOffsBeforeItem(ItemNo); RichViewEdit.SetSelectionBounds(ItemNo, Offs, ItemNo, Offs); Example of moving a caret to the end of a document: var ItemNo, Offs: Integer; ItemNo := RichViewEdit.ItemCount-1; Offs := RichViewEdit.GetOffsAfterItem(ItemNo); RichViewEdit.SetSelectionBounds(ItemNo, Offs, ItemNo, Offs); "Alex" <als965@mail.ru> wrote: >Is it possible to insert text or other style item to any place of document >(not to the current caret position)? >Is it possible to move caret programmatically? |
Powered by ABC Amber Outlook Express Converter