Page 1 of 1

how can i get rectangle of a character, not a text item

Posted: Wed Sep 28, 2011 3:14 pm
by amethyst623
hi,
how can i get rectangle of a character, not a text item, not a word in TRichViewEdit?

GetItemClientCoords returns coordinates of item.

or how to select a character in a word by code?

Posted: Wed Sep 28, 2011 5:48 pm
by Sergey Tkachenko
Positions of characters are not stored. They can be calculated, but it's quite complicated (and the code will be different when RTL support is enabled and disabled).
If you need to select a character, use SetSelectionBounds method.

Posted: Fri Dec 16, 2011 2:43 pm
by amethyst623
Sergey Tkachenko wrote:Positions of characters are not stored. They can be calculated, but it's quite complicated (and the code will be different when RTL support is enabled and disabled).
If you need to select a character, use SetSelectionBounds method.
would you tell me how to get the nth character coordinates?