BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-06-2008, 02:50 AM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Model: 8800
PIN: N/A
Carrier: Airtel
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default RichTextField

Please Login to Remove!

I need to change the background color of the text written in the RichTextField but I have not managed to do it so far. Any help in this regard will he highly appreciated


Thanks in Advance!!
Gaurav
Offline  
Old 08-06-2008, 09:20 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You will need to create a class that extends RichTextField. In that class, override the paint method like so:

public void paint(Graphics g) {
g.setBackgroundColor(whateverYourBackgroundColorIs );
g.clear();
g.setColor(theColorOfTheTextFont);
}
Offline  
Old 08-08-2008, 04:18 AM   #3 (permalink)
New Member
 
Join Date: Aug 2008
Model: 8800
PIN: N/A
Carrier: Airtel
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thnx.

- Gaurav
Offline  
Old 08-08-2008, 04:24 AM   #4 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bemshaswing View Post
You will need to create a class that extends RichTextField.
you can also overwrite the method directly on creation of your class.
new RichTextField(){protected void paintBackground...}
__________________
java developer, Devinto, hamburg/germany
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

Lot of 71 QTY Digital, VoiP AVAYA Business Phones (20x 6416D+M) & (51x 6408D+)
$420.0
Lot of 71 QTY Digital, VoiP AVAYA Business Phones (20x 6416D+M) & (51x 6408D+) pictureCisco SPA303 3-Line IP VoIP Telephone Phone w/AC Power
$15.0
Cisco SPA303 3-Line IP VoIP Telephone Phone w/AC Power pictureMITEL 8528 DIGITAL TELEPHONE 50006122 - DARK GREY~VoIP System
$55.0
MITEL 8528 DIGITAL TELEPHONE  50006122 - DARK GREY~VoIP System pictureAvaya 1416 LCD D Telephone VOIP 1416D02A-003 700469869 With Stand
$0.99
Avaya 1416 LCD D Telephone VOIP 1416D02A-003 700469869 With Stand pictureSiemens OpenStage 40 G SIP Office Business VoIP Handset Office Telephone Black
$21.88
Siemens OpenStage 40 G SIP Office Business VoIP Handset Office Telephone Black picture






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