Move caret to end text cell
Posted: Sat May 05, 2018 5:54 pm
Hello! How to move a caret to the end of text in a table cell?
Support forums for TRichView, ScaleRichView, Report Workshop and RVMedia components
https://reportworkshop.com/forums/
Code: Select all
uses RVTable, CRVFData;
var
RVData: TCustomRVFFormattedData;
ItemNo, Offs: Integer;
RVData := table.Cells[r,c].Edit as TCustomRVFFormattedData;
ItemNo := RVData.ItemCount - 1;
Offs := RVData.GetOffsAfterItem(ItemNo);
RVData.SetSelectionBounds(ItemNo, Offs, ItemNo, Offs);