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

EditField always visible and focused

Hi,

Im developing an app and one of the screens is a BasicEditField and a ListField. When the user writes at the editfield, the list is filtered by the text introduced.

I wanna do something like the blackberry address book, where the editfield is always visible and focused, and still focused if you navigate across the listfield with the trackwheel.

Any idea how to do this?

Thanks in advance.
Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: EditField always visible and focused

maybe you can catch the keychar input of the listfield and hand it over to the editfield?
the BB engine is not able to focus two fields at once so you have to simulate one of the foci.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 88
Registered: ‎09-25-2008
My Device: Not Specified

Re: EditField always visible and focused

That is what I've done, but it dont work perfect. The right way it's like the Address book app.

 

Thanks for your answer.

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: EditField always visible and focused

try to get the addressbook screen in the debugger, maybe you can see how rim implemented the feature.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 88
Registered: ‎09-25-2008
My Device: Not Specified

Re: EditField always visible and focused

How can I do that?

 

Thanks!

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

Re: EditField always visible and focused

You can use a KeywordFilterField to accomplish this.  This field was added in version 4.5.0 of the BlackBerry API set.
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