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?
how can i get rectangle of a character, not a text item
-
- Posts: 3
- Joined: Wed Sep 28, 2011 2:55 pm
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 3
- Joined: Wed Sep 28, 2011 2:55 pm
would you tell me how to get the nth character coordinates?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.