Page 1 of 1

Coordinates for ItemNo and Offset

Posted: Thu Nov 24, 2016 5:02 pm
by jimbr32
Is it possible to write a function that does the opposite TCustomRichView.GetItemAt ? GetItemAt converts X and Y coordinates to ItemNo and offset, I'd like to do the reverse if possible: translate Item and Offset to X and Y coordinates.

GetItemCoords would work if it accepted an Item Offset as an argument.

Posted: Thu Nov 24, 2016 8:56 pm
by jimbr32
Nevermind, I just found the RVData function GetCoordsOf. That does what I need.