jahertor / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 1 forks source link

Can't get Cursor Position in a TextField #203

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a TextField
2. Try to get the position of the cursor in the text field as the user is
typing.

What is the expected output? What do you see instead?
There is a method on the base GWT TextBox widget called getCurrentPos()
that will get the cursor position in a TextBox.  There is nothing
equivalent for GWT-Ext.  It would be very nice to have.

What version of the product are you using? On what operating system?
0.9.3 - Windows

Please provide any additional information below.
I know this is an enhancement but I don't see anywhere here to flag it as
such.  Sorry if this appears as a defect.

Original issue reported on code.google.com by bparke...@gmail.com on 1 Feb 2008 at 1:12

GoogleCodeExporter commented 8 years ago
I mistyped the name of the method on the TextBox.  It's actually getCursorPos().
I forgot to mention that it would also be nice to have a setCursorPos(int pos) 
method
as well.

Original comment by bparke...@gmail.com on 1 Feb 2008 at 1:57

GoogleCodeExporter commented 8 years ago

Original comment by sanjiv.j...@gmail.com on 1 Feb 2008 at 3:20

GoogleCodeExporter commented 8 years ago

Original comment by mlim1...@gmail.com on 17 Jun 2008 at 7:08

GoogleCodeExporter commented 8 years ago
New methods added:
- getCaretPosition
- setCaretPosition
- insertAtCaret

Original comment by mlim1...@gmail.com on 24 Jun 2008 at 8:34