BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   ObjectChoiceField and Field.USE_ALL_WIDTH (http://www.blackberryforums.com/developer-forum/252704-objectchoicefield-field-use_all_width.html)

laurre 08-25-2011 04:36 AM

ObjectChoiceField and Field.USE_ALL_WIDTH
 
Hello,

I would like to know if the flag style Field.USE_ALL_WIDTH is supported for an ObjectChoiceField component. I try to use it but it doesn't work. I was expecting the field to take all the width of its container (in my case the screen's width).

I have tried to override the layout method, and I call setExtent correctly, with the screen's width as parameter, but it's still the same.

How could I make the field take all the available width ?

Thanks

Edit : I use the JDE 4.7.0, and the 9530 Simulator.

Dougsg38p 08-25-2011 08:28 AM

Re: ObjectChoiceField and Field.USE_ALL_WIDTH
 
My advice would be to use ObjectListField instead.

ObjectChoiceField is meant to be a form control, and the list itself will take its width from the widest member.


All times are GMT -5. The time now is 07:26 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.