Can not get Linenr or column of TMemo

Issue #253 new
Harry Stahl created an issue

z := SendMessage (m.handle, EM_LINEFROMCHAR, M.SelStart, 0);
c := m.SelStart - SendMessage (m.handle, EM_LINEINDEX, z, 0);

This does not work to get Line-Nr and current column of the current line.

z is always zero and c is m.selstart, because the result of the second sendmessage is also always zero

Is there an other way to get the line nr or the current column of the current line for TMemo?

Or could this be fixed?

Comments (1)

  1. Log in to comment