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: 42
Registered: ‎12-01-2009
My Device: BlackBerry Bold 9790
My Carrier: CellOne

Custom TreeField

Hi,

     I want to create a custom TreeField with a table like structure inside it.

 

I tried Field with just normal text message in it on the TreeField. i managed to change the background color of the cells.

But i'm stuck in 1) changing the hover color

2) reducing the size of the '+' or '-' icons on left.

3) reducing the cell height.

 

So isn't these things possible?

 

Please help me in customizing the TreeField component..

 

 

Thanks.

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

Re: Custom TreeField

if you mean focus color with "hover" you can overwrite http://www.blackberry.com/developers/docs/7.0.0api/net/rim/device/api/ui/component/TreeField.html#dr... boolean)

the +/- icon fixed, you cannot change it.

you can use http://www.blackberry.com/developers/docs/7.0.0api/net/rim/device/api/ui/component/TreeField.html#se... to change the row height.
----------------------------------------------------------
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: 42
Registered: ‎12-01-2009
My Device: BlackBerry Bold 9790
My Carrier: CellOne

Re: Custom TreeField

So, isn't it possible to remove the +/- icons?
Developer
Posts: 42
Registered: ‎12-01-2009
My Device: BlackBerry Bold 9790
My Carrier: CellOne

Re: Custom TreeField

isn't it possible to remove the +/- icons?
Developer
Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Custom TreeField

no.

if you want to customize it that much, create your own field.
----------------------------------------------------------
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