BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-19-2009, 03:50 AM   #1
my_aro
New Member
 
Join Date: Oct 2008
Model: 9000
PIN: N/A
Carrier: Smart
Posts: 14
Default textfield

Please Login to Remove!

is there a way to resize a textfield interms of its height?
Offline  
Old 01-19-2009, 06:08 AM   #2
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

you can call setExtent or overwrite getPreferredHeight
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 01-26-2009, 07:49 PM   #3
my_aro
New Member
 
Join Date: Oct 2008
Model: 9000
PIN: N/A
Carrier: Smart
Posts: 14
Default

Quote:
Originally Posted by simon.hain View Post
you can call setExtent or overwrite getPreferredHeight
good suggestion, but if you set it like that the field resizes but the fonts doesnt.
Offline  
Old 01-27-2009, 03:54 AM   #4
Ivanov
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Default

calculate the necessary SIZE of the font,
use fied.setFont(field.getFont().derive(Font.PLAIN, SIZE))
take a look at different derive() versions, which you might need to pass the unit for the size
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)
Offline  
Old 01-27-2009, 08:28 AM   #5
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

You can also set the field height by changing the font. The field will set it's verticle extent based on the font height.
Offline  
Old 01-27-2009, 11:20 PM   #6
codermalfunction
New Member
 
Join Date: Jan 2009
Model: 9000
PIN: N/A
Carrier: TMobile
Posts: 5
Default

thanks you so much guys i also have same problem, i did it having the field and font resize but this time the only problem is it was resized but the height of the Field at the back is still the default height giving me a border whenever i do another field next to it..

Last edited by codermalfunction; 01-28-2009 at 12:44 AM..
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


Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc picture

Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc

$100.00



Vintage Printing Letterpress Printers Block Months Of The Year Jan-Dec picture

Vintage Printing Letterpress Printers Block Months Of The Year Jan-Dec

$19.00



Vintage Journal Beautiful Garden Flower Embossed Leather-Antique Handmade Dec... picture

Vintage Journal Beautiful Garden Flower Embossed Leather-Antique Handmade Dec...

$29.04



DEC DIGITAL VINTAGE RA8X Control Panel picture

DEC DIGITAL VINTAGE RA8X Control Panel

$30.00



Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16) picture

Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16)

$189.99



VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250 picture

VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250

$50.00







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