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

Native Development

Reply
Developer
testinz
Posts: 173
Registered: ‎09-03-2012
My Device: Blackberry 10

Hightlight all text on click

I am wondering if there's an option to select all the text in a textField upon user clicking/focusing on it?

 

I thought focusHighlightEnabled is the property but it doesn't seems tobe the case.

 

Thanks!

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Hightlight all text on click

There's no API for this yet in Cascades. It appears to be on the roadmap (see item "Text Insertions"... I would expect it to include "selection range" features that would allow what you describe) but is listed as "NOV DELAYED", implying it didn't make it into the imminent next release, so I guess we won't see it till perhaps December.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
testinz
Posts: 173
Registered: ‎09-03-2012
My Device: Blackberry 10

Re: Hightlight all text on click

Thanks Peter!

Please use plain text.