BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-12-2008, 05:56 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2008
Model: 7100T
PIN: N/A
Carrier: Unknow
Posts: 42
Post Thanks: 0
Thanked 0 Times in 0 Posts
Post Custom button paint problem

Please Login to Remove!

Hi,

I have a custom button that has to be next to a labelfield.

The paint code of the button is this:
protected void paint(Graphics graphics) {
graphics.drawBitmap(13, 0, fieldWidth, fieldHeight, button, 0, 0,);

}


Where "13" is the a space between labelfield and button.

But when the size font is bigger, the result is this:




The button is cutted and other times its even more.

What could be a solution?

Thanks in advance.
Offline  
Old 12-12-2008, 12:48 PM   #2 (permalink)
jwb
New Member
 
Join Date: Jun 2005
Model: Many
Carrier: T-Mobile
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You need to setFont() on your ButtonField, if you want to constrain the size of the text. But it looks to me like you would also have a problem if the price was higher, such as "123456,78 EUR/100kg" it could be very long, no?
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

FX-EEPROM-4 FXEEPROM4 New Mitsubishi NEW IN BOX
$25.0
FX-EEPROM-4 FXEEPROM4 New Mitsubishi NEW IN BOX  picture5PCS EEPROM IC ATMEL DIP-8 AT24C64A-10PU-2.7 AT24C64A-10PU AT24C64A-PU AT24C64A
$1.99
5PCS EEPROM IC ATMEL DIP-8 AT24C64A-10PU-2.7 AT24C64A-10PU AT24C64A-PU AT24C64A picture(5PCS) M95040-WDW6TP IC EEPROM 4KBIT 10MHZ 8TSSOP 95040 M95040
$5.94
(5PCS) M95040-WDW6TP IC EEPROM 4KBIT 10MHZ 8TSSOP 95040 M95040 picture(5PCS) M24C32-RMN6TP IC EEPROM 32KBIT 400KHZ 8SOIC 24C32 M24C32
$7.37
(5PCS) M24C32-RMN6TP IC EEPROM 32KBIT 400KHZ 8SOIC 24C32 M24C32 picture(5PCS) M24C32-WBN6P IC EEPROM 32KBIT 400KHZ 8DIP 24C32 M24C32
$8.3
(5PCS) M24C32-WBN6P IC EEPROM 32KBIT 400KHZ 8DIP 24C32 M24C32 picture






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