Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3762

DesktopTextArea CharacterPosition seems to be wrong

$
0
0

Could it be that the CharacterPosition(x,y) method in DesktopTextArea has an error?

If I include the following statements in the DesktopTextArea in the MouseDown event:

if IsContextualClick then
  
  var mouseAtCharPos as integer = me.CharacterPosition(x,y)
  var textLength     as integer = me.Text.Length

end if

then I always get the same result for the mouseAtCharPos and the textLength, although the XY position was at a different position in the text at each attempt.

I have tested this in macOS 14.4 with XOJO 2023R4.

7 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3762

Trending Articles