BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 03-27-2009, 03:08 PM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 9530
PIN: N/A
Carrier: Telus
Posts: 107
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Button Size

Please Login to Remove!

Hello Everyone

Does anyone know how to change the size of the ButtonField?

Thanks
Offline  
Old 03-27-2009, 04:35 PM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: May 2008
Model: 8700
PIN: N/A
Carrier: Telcel
Posts: 69
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you should use the method layout on which you specify the width of height o create a Graphics variable on which you specify your needed size of the button.
Offline  
Old 03-30-2009, 03:30 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
class FixedWidthButtonField extends ButtonField{
    private int width;
 
    FixedWidthButtonField( String label, int Width){
        super( label);
        width = Width;
    }
 
    public int getPreferredWidth(){
        return width;
    }
}
Offline  
Old 03-30-2009, 07:52 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 9530
PIN: N/A
Carrier: Telus
Posts: 107
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks CJLopez and hippocamp software.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

MSA 10087913 Charger for Altair 4X and 5X Multi-Gas Detector
$33.89
MSA 10087913 Charger for Altair 4X and 5X Multi-Gas Detector pictureMSA 10042621 1' Sampling Probe For Use With ALTAIR Multi-Gas Detector NOS SEALED
$125.99
MSA 10042621 1' Sampling Probe For Use With ALTAIR Multi-Gas Detector NOS SEALED pictureMsa Altair 5X brand new in box 10 ft tube,wand,cd bluetooth ready
$199.99
Msa Altair 5X brand new in box 10 ft tube,wand,cd bluetooth ready picture(8) MSA 10083913 INTERNAL Li-Poly BATTERY - ALTAIR 4/ 4X MULTI-GAS DETECTOR *K12
$49.99
(8) MSA 10083913 INTERNAL Li-Poly BATTERY - ALTAIR 4/ 4X MULTI-GAS DETECTOR *K12 pictureMSA Altair 4 gas Monitor Detector H2S,LEL,CO,O2...
$299.0
MSA Altair 4 gas Monitor Detector H2S,LEL,CO,O2... picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.