- Ricardo Colarina
- PowerBuilder
- Monday, 10 September 2018 06:15 AM UTC
Hi All,
I'm using PB 2017 R3. Can anyone please suggest a way to determine the line number of the text under the mouse pointer in a richtextedit control? SelectedLine or Position won't do it for me as the mouse pointer's position won't necessarily be the same as the RTE's SelectedStart. I've started with using EM_CHARFROMPOS in SendMessage in the mousemove event of the RTE but, SendMessage(Handle(this), 215, 0, lstr_point) always return a 0. Please note I don't want to change SelectedStart to where the mouse pointer is just to get the line number.
Thanks in advance.
Ricardo
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.