BlackBerry Forums Support Community

BlackBerry Forums Support Community (
-   Developer Forum (
-   -   ObjectChoiceField and Field.USE_ALL_WIDTH (

laurre 08-25-2011 04:36 AM

ObjectChoiceField and Field.USE_ALL_WIDTH

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 ?


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:41 AM.

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