Getting Cursor Coordinates of Highlighted Text
Posted: Wed Mar 15, 2017 5:37 am
I'm working with a multi-line edit box in a reusable part that is a command handler for a framework.
The multi-line edit box allows users to input a large blob of text that is then pushed to a Word Document.
In order to allow users to circumvent having to use Word when they are finished, I would like to implement simple formatting tools inside my reusable part (bold, underline, italicize, page breaks, text color, etc). In order to get certain text formatting tools to work, I need to be able to track the start and end point of where text is highlighted. Currently, I can only get the end of where text is highlighted by using the CurrentLine and CharacterPosition methods.
Is there a way to determine the start position of where a user has highlighted inside of a multi-line edit box (memo box)?
The multi-line edit box allows users to input a large blob of text that is then pushed to a Word Document.
In order to allow users to circumvent having to use Word when they are finished, I would like to implement simple formatting tools inside my reusable part (bold, underline, italicize, page breaks, text color, etc). In order to get certain text formatting tools to work, I need to be able to track the start and end point of where text is highlighted. Currently, I can only get the end of where text is highlighted by using the CurrentLine and CharacterPosition methods.
Is there a way to determine the start position of where a user has highlighted inside of a multi-line edit box (memo box)?