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

Please Login to Remove!


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   Reply With Quote