GetCharIndexFromPosition in scintilla

Topics: Developer Forum, User Forum
May 28, 2009 at 9:09 AM

hi there,

any one knows how to replace "int GetCharIndexFromPosition(Point pt)" of RichTextBox in the scintilla ?? I coud not find out :(

May 28, 2009 at 9:48 AM
Edited May 28, 2009 at 9:50 AM

Hi ferarkan,

I'm not sure but I think you could use the PositionFromPoint Method.

For what you can do with the Position you get from this function,

take a look at the Caret Property of the Scintilla Control.

May 28, 2009 at 10:23 AM

thanks Klingel, PositionFromPoint is grate one for my needs :)