Get the caret position (line and char) in an FMX TMemo

  

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.

Comments are closed.