Get cursor position in Text Field/Area

  1. 8 months ago

    Paul S

    28 Jan 2019 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

    28 Jan 2019 Pre-Release Testers Rochester, NY

    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

    28 Jan 2019 Pre-Release Testers, Xojo Pro The Netherlands
    Edited 8 months ago

    Good idea ! It's only 30 hrs.

or Sign Up to reply!