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

Web and WebWorks Development

New Developer
Posts: 134
Registered: ‎01-11-2011
My Device: curve

how to set the width of objectchoicefield

hi all

        how i can set the width of a objectchoicefield.its width automatically changes according to the length of the text.but i want fix it with the Drawstyle Elipses. If the text lenght is larger than it gives(....) dots.

i override the layout method like this

protected void layout(int width, int height) {
         super.layout(1 80 25);

}but than its height changes. i donot know what to do .