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
Contributor
robinbabu
Posts: 15
Registered: ‎11-14-2012
My Device: 9220
Accepted Solution

Set width to objectchoicefield

HI,

 

    I want ObjectChoiceField without label and set its width to Screen width in my project. Suggest me the way to do this

 

 

 

Thanks in advance

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Set width to objectchoicefield

check this to learn how to do a custom layout:
http://supportforums.blackberry.com/t5/Java-Development/How-to-Extend-Manager/ta-p/446749

in your case you could also try to overwrite getPreferredWidth, but not sure if it works on a choicefield
----------------------------------------------------------
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
Contributor
robinbabu
Posts: 15
Registered: ‎11-14-2012
My Device: 9220

Re: Set width to objectchoicefield

Hi

 

Thanks nice tutorial helped me