trichview.support
InsertText removes CheckPoint |
Author |
Message |
Gabriel Padilla |
Posted: 07/14/2002 0:18:12 When I use rve.InsertText, it removes the checkpoint associated with the current item. Example: ItemNo := 18; Offset := rve.GetOffsBeforeItem(ItemNo); rve.SetSelectionBounds(ItemNo, Offset, ItemNo, Offset); rve.InsertText( 'Any text' + crlf); If the InsertText does include the crlf (#13#10) it does work fine. I can workaround this problem by using saving and restoring the checkpoint using GetCheckpointInfo and SetCheckpointInfo but there should be a simpler way. Any suggestions? Much thanks, Gabriel Padilla |
Powered by ABC Amber Outlook Express Converter