BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Set text highlight colour of Blackberry RichTextField (http://www.blackberryforums.com/showthread.php?t=201557)

niceonedave 08-20-2009 06:09 AM

Set text highlight colour of Blackberry RichTextField
 
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??

shraddha294 08-21-2009 01:29 AM

how about overriding paint method of richtextField?


All times are GMT -5. The time now is 02:28 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.