Move caret to end text cell
Move caret to end text cell
Hello! How to move a caret to the end of text in a table cell?
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Move caret to end text cell
Moving to the end of table.Cells[r,c]:
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);
Re: Move caret to end text cell
I am used CRVFData and RVTable, but is my compiler show message "Undeclared identifier". What is it? In uses main unit i'am wrtite it is modules. The procedure that moves the caret is also in the main module. My version RichViewEdit 16.5.
Re: Move caret to end text cell
You have a typing error, as it turned out. It is necessary to write not "TCustomRVFFormattedData" and "TCustomRVFormattedData". Thank you, you helped me a lot.