1. Ricardo Colarina
  2. PowerBuilder
  3. 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



There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.