I try to show the position of a memo's caret in a statusbar which contains two labels.
I tried this:
lblX.Text := Memo.Caret.Pos.X.ToString();
lblY.Text := Memo.Caret.Pos.Y.ToString();
The two values seems to represent the real position from left and top of the memo.
Is it possible to get it as row (lines) and cols (chars)?
I want to clarify that I work with firemonkey in order to be able to compile my project towards windows and linux.
Thank you already for your answers.
Selticq.
I have never used FMX before, but using Code Insight I immediately found that
Memo.CaretPosition.Line
andMemo.CaretPosition.Pos
represent the current line and column, respectively.This is confirmed by the documentation: