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
Regular Contributor
Posts: 61
Registered: ‎02-24-2010
My Device: Storm 2
My Carrier: AT&T
Accepted Solution

Increasing the size of checkboxes

Hi..

 

I am adding instances of checkboxfield and adding them to the vertical field manager. I want to increase the size of the checkboxes. How can i do that ??

 

Please suggest.

 

Thanx.

Developer
Posts: 222
Registered: ‎11-11-2009
My Device: Storm

Re: Increasing the size of checkboxes

have to override layout() in checkbox field to increase the size.

 

here is the code snippet

            public void layout (int width, int height)
            {
                super.layout(width, height);
                setExtent(200, 300); // specify your width and height for checkbox field
            }

with regards,
Vignesh J

-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Don't forget to mark your post as solved if you get the answer and dont forget to give kudos if the answer is useful for you.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Increasing the size of checkboxes

Alternatively, try changing the font size.

Highlighted
Regular Contributor
Posts: 61
Registered: ‎02-24-2010
My Device: Storm 2
My Carrier: AT&T

Re: Increasing the size of checkboxes

Thanx