BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-27-2009, 03:08 PM   #1
DD12
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 9530
PIN: N/A
Carrier: Telus
Posts: 107
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
CJLopez
Thumbs Must Hurt
 
Join Date: May 2008
Model: 8700
PIN: N/A
Carrier: Telcel
Posts: 69
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
hippocamp software
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
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
DD12
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 9530
PIN: N/A
Carrier: Telus
Posts: 107
Default

Thanks CJLopez and hippocamp software.
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


8PACKS FORD F-150 5.4 5.4L V8 TRITON 2004 2005 2006 2007 2008 F150 IGNITION COIL picture

8PACKS FORD F-150 5.4 5.4L V8 TRITON 2004 2005 2006 2007 2008 F150 IGNITION COIL

$56.99



Asco 400125-228 Coil picture

Asco 400125-228 Coil

$112.70



Sylvania Coil TB130-13 new picture

Sylvania Coil TB130-13 new

$189.99



Cutler Hammer  1323-1 Coil picture

Cutler Hammer 1323-1 Coil

$145.19



Heating Coil 5 PIN XLR 20mm 16mm 10mm flat 25mm 30mm Electronic picture

Heating Coil 5 PIN XLR 20mm 16mm 10mm flat 25mm 30mm Electronic

$34.99



3021420 COIL SOLENOID 24V 2POLE for Cummins® (134076, 3026246) picture

3021420 COIL SOLENOID 24V 2POLE for Cummins® (134076, 3026246)

$45.83







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