to clear up this confusion, X is returning Vertical and Y is returning Horizontal
When you press the cursor up/down key, which value changes?
Cursor up/down key *should* change CaretY. If it does not some debugging is needed.
I always think of rows meaning horizontal lines
"horizontal lines" yes, but vertical movement => Y
Ok this is getting more confusing. Lets stick to looking at the cursor keys up/down.
(ie CurrentLine IS NOT the CurrentCharPos)
CurrentLine is a string.
CurrentCharPos is the left/right position *in* this string. ("physical"!, so neither in bytes nor in chars).
CurrentCharPos is *NOT* the number of the line/row.
anyway, SynEdit behaved differently in 1.2.6
I dont know why that would be the case. I am sure the code for caretx/y has not changed.
Look at the code that I quoted from your file.
You pass "CaretX" as value for param "Line". That is wrong.
Correct is "CaretY" as param "Line".
CaretY = Row or Line. (At least it should be)