TSRichView - GetItemAt returns wrong corrdinates
Posted: Tue Aug 22, 2023 3:01 pm
In a form I use TSRichViewEdit V. 9
The function GetItemAt returns wrong corrdinates and therefore does not return the item under the mouse pointer. I have already tried all possible combinations like:
minus PageProperty.LeftMargin and PageProperty.TopMargin
and/or
minus the coordinates of srv.GetPageClientRect(PageNo);
but I can't find the appropriate item under the mouse cursor. It even doesn't work if the zoom factor is <> 100?
How can I reliably find the item that is under the mouse pointer?
The function GetItemAt returns wrong corrdinates and therefore does not return the item under the mouse pointer. I have already tried all possible combinations like:
minus PageProperty.LeftMargin and PageProperty.TopMargin
and/or
minus the coordinates of srv.GetPageClientRect(PageNo);
but I can't find the appropriate item under the mouse cursor. It even doesn't work if the zoom factor is <> 100?
How can I reliably find the item that is under the mouse pointer?