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
Developer
jitendraballa
Posts: 86
Registered: ‎09-01-2009
My Device: Not Specified
Accepted Solution

Button text prob

How can I align the button label(Display string of the button) to center?

 

 

 

Regards:

Jitendra.Balla

Developer
bedathur
Posts: 25
Registered: ‎11-23-2008
My Device: BlackBerry Bold

Re: Button text prob

Use ButtonField.HCENTER as in:

 

 

_myButton = new ButtonField( "My Button Label", ButtonField.CONSUME_CLICK|ButtonField.FIELD_HCENTER|ButtonField.HCENTER|ButtonField.FIELD_VCENTER|ButtonField.VCENTER|ButtonField.ELLIPSIS)

 


 

Developer
bikas
Posts: 984
Registered: ‎02-10-2009
My Device: Not Specified

Re: Button text prob

Developer
jitendraballa
Posts: 86
Registered: ‎09-01-2009
My Device: Not Specified

Re: Button text prob

Thanks its working now....