Assuming that data for a specific record is of fixed length CharAtPos might be a start...?
Well, I already saw this but it returns the character at the coordinate and this will in a hex display always be one of 0..9, A..F plus space.
What I need to know is
where the clicked character is located in the text
regardless of the scroll state.
I.e. if I get to know that I clicked on the char in line 5 column 19 of the
text loaded into the memo then I could immediately calculate to which data it belongs and highlight the record accordingly.
BTW: My highlighting function at the moment is
not capable of skipping the address column, but this was also true of the Delphi program.
I tried back then to use two TRichEdits and sync the scrolling of them so they would always be parallel. But it really did not work well.
After I get the click to position function done I can have a look at doing multiple selections so that the address stays unselected.
UPDATE:I assumed that the function would return the character itself by the name of the function
but it seems to do what I want, namely return the character number in the text loaded.
Now I just have to check if the line feeds are included in the count too...