Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
New Developer
Posts: 61
Registered: ‎06-07-2011
My Device: Playbook
My Carrier: Employee

TextArea cursor position

How can I get the current cursor position in the TextArea?.

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: TextArea cursor position

Which TextArea control?
New Developer
Posts: 61
Registered: ‎06-07-2011
My Device: Playbook
My Carrier: Employee

Re: TextArea cursor position

I am using qnx.fuse.ui.text.TextArea.

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: TextArea cursor position

No way for me to test from here, but does selectionActiveIndex and selectionAnchorIndex return the same value for the current cursor position? There is a Cursor class that gives a position, but I do not see how that class ties into the TextArea class (even though it indicates that it does).