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

Java Development

Reply
Developer
Posts: 88
Registered: ‎09-25-2008
My Device: Not Specified
Accepted Solution

Problem with BasicEditField and predictive text

What can I do to remove the predictive text from a BasicEditField programmatically , like Address Book input search?

I think I cant do it with code, only enabling multitap at the context menu, but the user has watched the Address book and wants the same.

 

 

Thanks in advance.

BlackBerry Development Advisor
Posts: 15,724
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problem with BasicEditField and predictive text

SureType can not be programmatically enabled or disabled.  You can override the keyDown and keyUp methods of BasicEditField to provide your own input mechanism.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 88
Registered: ‎09-25-2008
My Device: Not Specified

Re: Problem with BasicEditField and predictive text

Thanks you very much Mark.

 

Can you post some code example, please? If I press 'e' and then 's' appears a dropdown list with "each", "early", ...

 

How can I make disappear like Address book?

 

 

Thanks and regards.

BlackBerry Development Advisor
Posts: 15,724
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problem with BasicEditField and predictive text

Please see this thread on the topic.

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=10355&query.id=23...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Problem with BasicEditField and predictive text

Developer
Posts: 88
Registered: ‎09-25-2008
My Device: Not Specified

Re: Problem with BasicEditField and predictive text

Thanks you very much.

 

I've puted this method at my CustomEditField and its called at paint(), because if I use a FieldChangeListener, when I enter a char, it is introduced two times, very strange. But at paint() works correctly.