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
Posts: 15
Registered: ‎11-14-2012
My Device: 9220
My Carrier: cellone
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
Posts: 16,652
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

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
Posts: 15
Registered: ‎11-14-2012
My Device: 9220
My Carrier: cellone

Re: Set width to objectchoicefield

Hi

 

Thanks nice tutorial helped me