trichview.support
Re: SetItemText & InsertText |
Author |
Message |
Sergey Tkachenko |
Posted: 09/01/2004 19:11:56 InsertText inserts text in the caret position. If there there selection, it's deleted before inserting. SetSelectionBounds(1,1,i,1) selects the first (i-1) characters of the 1st item. If InsertText is called after it, they will be deleted. But it must not happen if InsertText is called after Deselect. Can you give me a code which I can run and reproduce this problem? > I need to Insert few lines at some point of a formatted TRichViewEdit. to > take the caret to that item/position I used SetSelectionBounds(1,1,i,1) ; > then > Deselect; > InsertText(tmpstr); > > But instead of inserting new line it is just replacing the current one. > Then what is the difference between SetItemText and InsertText? > > and what should I do to insert something in between? > > Regards, > Papiya > > |
Powered by ABC Amber Outlook Express Converter