Get cursor position in Text Field/Area

  1. 3 weeks ago

    Paul S

    Jan 28 Pre-Release Testers, Xojo Pro Europe (Netherlands, Den Haag)

    For a certain control, that I'm converting from Desktop to Web, I need to know the current position of the cursor in a Text Field/Area.
    Since SelStart isn't available in Xojo Web, I need an other way to get that cursor position.
    The cursor position can be any place within the entered text of the Text Field/Area.
    Is it possible to retrieve the current cursor position in a Text Field/Area?

  2. Tim P

    Jan 28 Pre-Release Testers feedback://46303

    Within the Xojo framework, no. Keep in mind the round trip delay makes this information next to useless.
    You can get the position with Javascript but it would be best to implement the whole function that uses the insertion caret position in Javascript to avoid latency / lag problems.

  3. Joost R

    Jan 28 Pre-Release Testers, Xojo Pro The Netherlands
    Edited 3 weeks ago

    Good idea ! https://www.codecademy.com/learn/introduction-to-javascript It's only 30 hrs.

or Sign Up to reply!