OnItemAction var Text

General TRichView support forum. Please post your questions here
Post Reply
cychia_n2n
Posts: 16
Joined: Mon May 09, 2016 9:16 am

OnItemAction var Text

Post by cychia_n2n » Tue Feb 28, 2017 11:29 am

In OnItemAction(Sender: TCustomRichView; ItemAction: TRVItemAction; Item: TCustomRVItemInfo;
var Text: TRVRawByteString; RVData: TCustomRVData);

the Text is in var, but when ItemAction = rviaInserted, I tried to change the Text, but it does not seems updating the text to my new text.

Sergey Tkachenko
Site Admin
Posts: 14702
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: OnItemAction var Text

Post by Sergey Tkachenko » Tue Feb 28, 2017 11:39 am

rviaInserted occurs when the item is already inserted, you cannot modify text in it.
Use rviaInserting.
Please not that this even also happen for all items in the cell when its editing is started and is finished (moving items to a cell inplace editor, and then back)

Post Reply