BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 11-05-2008, 06:28 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: berlin, germany
Model: 8310
PIN: N/A
Carrier: vodafone
Posts: 163
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default BackgroundColor in EditField

Please Login to Remove!

Hi,
i have created my on EditField, it looks like this one here:
PHP Code:
public class myEdit extends EditField {
    public 
boolean farbe;
    public 
myEdit(String labelString defaultString) {
        
super(labeldefaultString);
    }

    protected 
void layout(int widthint height) {
        
setExtent(100getFont().getHeight());
    }

    public 
void paint(Graphics graphics) {
         
graphics.clear();
        if (
farbe == true) {
            
graphics.setBackgroundColor(0xf7ce40);
            
graphics.drawRect(0,15,35,1);
            
super.paint(graphics);
        }
//*/
        
graphics.drawLine(0,0,10,0);
        
graphics.setColor(Color.BLACK);
        
super.paint(graphics);
        
invalidate();
    }
    
    public 
void setFarbe(boolean ok) {
        
farbe ok;
    }
    protected 
void update(int delta) {
    }
   public 
void onUnfocus() {
        
this.invalidate();
    }
    public 
boolean isFocusable() {
        return 
true;
    }
// end of myEdit 
ok, the Field is painted correctly.
now i want to set the focus to an other Field using the trackball then the next Field is focused.
then i take a look at the unfocused editfield and there is still a blue bar (from the cursor)

so how do i remove this blue bar?

thanks hibbert
__________________
My English is so bad, that makes me nobody so quickly after
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

Dr. Reckeweg, Anginacid R1 50 ml
$27.62
Dr. Reckeweg, Anginacid R1 50 ml picture40 5 Mfd P291 4054Rs 370 440 Volt Dual Run Round Capacitor Made By
$18.98
40 5 Mfd P291 4054Rs 370 440 Volt Dual Run Round Capacitor Made By               pictureAuto Discharge Capacitor Tester Capacitance Meters Lsi Circuit 9 Measure Range
$23.98
Auto Discharge Capacitor Tester Capacitance Meters Lsi Circuit 9 Measure Range   pictureSaniServ P/N 76470 Start Capacitor
$26.0
SaniServ P/N 76470 Start Capacitor picturefour 900V 5UF MKP High Voltage Kemet Capacitors C4AEOBU4500A11J
$9.99
four 900V 5UF MKP High Voltage Kemet Capacitors C4AEOBU4500A11J picture






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