TRichEdit, D5, How To Locate Exact Carot Pos on Screen.
Posted on 2003-11-05
All i want to do is locate the carot pos ( for displaying a hint by the text cursor ( a bit like delphi hints ) ), but no matter what i do, im having a problem getting the pos if the RichEdit has lots of text, and the page is scrolled down, the carot pos allways seems to be the position from the top of the richedit.
i cannot find any reference to the actual pos, or even the page showing rect / point variabls, so there doesnt even seem to be a way of deriving the value.
so can anyone tell be how to get the exact carot pos in a TRichEdit, taking into consideration scrolling / Screen position.
but either :
Get showing screen pos of the richedit so i can work it out,
get pos from screen directly,
or some other means with code example.
Thank you in advance.