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: 246
Registered: ‎09-30-2010
My Device: Z10, Onyx2
My Carrier: IND XL
Accepted Solution

search field for buttons

hi there

 

i see here that there is search field function for some string

http://docs.blackberry.com/en/developers/deliverables/18125/Search_field_1214696_11.jsp

 

can do it to buttons list?

 

like

button1

button2

button3

button4

button5

 

if search for button5, only button 5 that will show on screen

is that posible?

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

Re: search field for buttons

this would be a function of display only.

you could either use a listfield where the drawn elements look like buttons or an actual manager with buttonfields.

just replace the display component from the sample.

----------------------------------------------------------
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: 246
Registered: ‎09-30-2010
My Device: Z10, Onyx2
My Carrier: IND XL

Re: search field for buttons

yes.. 

i want to filter the button base on the search field.

and if the button got click it will create a new vertical field

the button that i create not only 5

i got 40 or 50 buttons

so its hard to scroll down that many buttons.

combining search field with buttons that create vertical field possible?

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

Re: search field for buttons

i would first check if you really want buttons. a listfield can be clicked as well and provide a nice UI, too.

----------------------------------------------------------
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: 246
Registered: ‎09-30-2010
My Device: Z10, Onyx2
My Carrier: IND XL

Re: search field for buttons

hmm..

ic...

change to listfield...

never tried it before...

thanks for the info