robertb_NZ
Well-known member
I am trying to implement contextual Help for a RichTextBox, and I need to know the text that was right-clicked. I can find this out for a normal click using
HelpLineNbr = RTB.GetLineFromCharIndex(RTB.SelectionStart)
HelpLineStart = RTB.GetFirstCharIndexOfCurrentLine()
However SelectionStart is not set if the user right-clicks, with this code returning the position of the preceding normal click.
How do I get this to be work with a right click?
Thank you, Robert Barnes
HelpLineNbr = RTB.GetLineFromCharIndex(RTB.SelectionStart)
HelpLineStart = RTB.GetFirstCharIndexOfCurrentLine()
However SelectionStart is not set if the user right-clicks, with this code returning the position of the preceding normal click.
How do I get this to be work with a right click?
Thank you, Robert Barnes