Cursor position when leaving inputbox

Thulani shared this question 4 years ago
Answered

Is it posible get cursor position inputbox and maybe set focus as well.

Comments (7)

photo
1

see attached

photo
1

Think I was not clear enough, I wanted the position of the cursor in the inputbox when leaving the input box.

Suppose the inputbox has text "Example text" and the cursor was placed at position 3, how can I get that 3?

photo
1

Sorry, you can't

photo
photo
1

You can use SelectObjects(inputbox) to set the focus

photo
1

This doesn't seem to take the cursor to the inputbox, it just selects it, I don't know how useful can such selection be.

photo
1

Now I can see. When Ideploy activity in materials, it works. It doesn't work on Geogebra 5 desktop version, at least on Windows 10.

photo
© 2022 International GeoGebra Institute