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

Native Development

Reply
Developer
smiley
Posts: 1,360
Registered: ‎07-14-2008
My Carrier: Fido
Accepted Solution

Is there a way to make the Button bigger?

Searched the forum but couldn't find a solution.

 

I'm trying to make a Button bigger by setting the

 

preferredHeight and preferredWidth

 

and nothing happens.  Isn't this supported for control?

 

 

Please use plain text.
Developer
peter9477
Posts: 6,448
Registered: ‎12-08-2010
My Carrier: none

Re: Is there a way to make the Button bigger?

You can change the width, but apparently not the height. Seems there are (currently) numerous restrictions on the Cascades controls, presumably to ensure a consistent look and feel. You could always implement a custom button using images, however, if you want to go outside the box a bit.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.