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
Contributor
Posts: 10
Registered: ‎03-10-2013
My Device: playbook, BOLD 9780, Z10
My Carrier: fido

text area shows blue digits that think they are telephone numbers

Good Day: I have an unusual problem in my field testing...I have a Dev Alpha B... I am writing a floating point value into a textArea but

when I use %8.4f, a number like  745.1234 will turn blue and ,if you tap it, attempts to dial... since I am outputting numbers to a display, this is not a good thing.... Is there a way to turn off this behaviour of a textarea... I have used the obvious fix ..using %8.3f but a user could ,inadvertently, add a letter to the number, and now it goes blue, again.. I guess I am "blue" over this too... any suggestions.. rich

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: text area shows blue digits that think they are telephone numbers

[ Edited ]

You can override this behaviour using the ActiveTextHandler,

 

http://developer.blackberry.com/cascades/reference/bb__cascades__activetexthandler.html


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Contributor
Posts: 10
Registered: ‎03-10-2013
My Device: playbook, BOLD 9780, Z10
My Carrier: fido

Re: text area shows blue digits that think they are telephone numbers

do you know, offhand, what the c++ coding line would be to call this qt routine? Should this be tied into a signal/slot (i suspect so).... ie connect when the event occurs, then abort();?????? thanks for the quick reply...

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: text area shows blue digits that think they are telephone numbers

You're right you would tie a SLOT to the triggered SIGNAL then just abort the event passed in.

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.