Coordinates for ItemNo and Offset

General TRichView support forum. Please post your questions here
Post Reply
jimbr32
Posts: 20
Joined: Thu Nov 09, 2006 10:01 pm

Coordinates for ItemNo and Offset

Post 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.
jimbr32
Posts: 20
Joined: Thu Nov 09, 2006 10:01 pm

Post by jimbr32 »

Nevermind, I just found the RVData function GetCoordsOf. That does what I need.
Post Reply