BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-20-2009, 06:09 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 8800
PIN: N/A
Carrier: O2
Posts: 30
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Set text highlight colour of Blackberry RichTextField

Please Login to Remove!

Does anyone know how to set the background colour of just a section of text within a RichTextField on the Blackberry?

I already use the offsets, attributes and fonts arrays to make changes to the appearance of certain sections of the text, but I would like to add a highlight colour to the background of one section too.

I know there is a protected method called getBackgroundColors that returns an array of colors to be used, which I can overwrite. But I have tried this and that method never seems to get called in my code, I don't actually know how and when the underlying implementation of the RichTextField actually uses this method. Any ideas??
Offline  
Old 08-21-2009, 01:29 AM   #2 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

how about overriding paint method of richtextField?
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

2PCS JQX-13F DC12V Coil DPDT 8Pin Power Electromagnetic Relay w Socket
$15.29
2PCS JQX-13F DC12V Coil DPDT 8Pin Power Electromagnetic Relay w Socket pictureLot of (5) 139-145P Decco Solenoid Coils 115/120v 60c
$65.0
Lot of (5) 139-145P Decco Solenoid  Coils  115/120v  60c pictureAutomatic Valve Co Pneumatic Valve NEW OLD STOCK 407D67S39DS3AA4 120V Coils
$110.0
Automatic Valve Co Pneumatic Valve NEW OLD STOCK 407D67S39DS3AA4  120V Coils pictureNUMATICS SOLENOID VALVE, 554BA400KT00030, 100/120V COIL *NOS*
$80.0
NUMATICS SOLENOID VALVE, 554BA400KT00030, 100/120V COIL *NOS* pictureVickers DG4V-3S-6N-MU-H5-60 Hydraulic Valve w/ 507848 24VDC 30W Coils
$84.0
Vickers DG4V-3S-6N-MU-H5-60 Hydraulic Valve w/ 507848 24VDC 30W Coils picture






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