BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-09-2008, 12:02 PM   #1 (permalink)
New Member
 
atleta's Avatar
 
Join Date: Jul 2008
Model: 8310
OS: v4.22176
PIN: N/A
Carrier: PannonGSM
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question RichTextField text formatting

Please Login to Remove!

Hi,

I'm trying to use RichTextField to display formatted (that is, rich...) text but the documentation says nothing about how the attributes parameter to the constructor or the setText method should be constructed.

The constructor takes a byte[] called attributes which is supposed to contain the formatting and also may take an Object[] called cookies which I don't know anything about.

The documentation for the construcors say that the parameters are described in the class description but there is nothing about it of course.

Also I have not been able to find any example that used RichTextField to display formatted text. For some reason all the examples use it to display pain text... Does anyone know about any documentation for this class?
Offline  
Old 12-09-2008, 12:11 PM   #2 (permalink)
New Member
 
atleta's Avatar
 
Join Date: Jul 2008
Model: 8310
OS: v4.22176
PIN: N/A
Carrier: PannonGSM
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK, forget it, after reading the doc for the Nth time I found that I misuderstod it and it is indeed documented, it just knows less than what I need. (The attribute[] is a list of indexes into the Font[] and the cokkies are probably just a way to tie your model to the text.)
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

Apple Macintosh Computer Vintage Style Man Cave Advertising Neon Clock Sign
$77.99
Apple Macintosh Computer Vintage Style Man Cave Advertising Neon Clock Sign pictureVintage Apple Darlin's Weekly Memo Note Pad 52 Sheets SEALED 1970's
$9.5
Vintage Apple Darlin's Weekly Memo Note Pad 52 Sheets SEALED 1970's pictureKate Spade Floral Vintage for Apple iPhone iPod Samsung Galaxy Case
$9.5
Kate Spade Floral Vintage for Apple iPhone iPod Samsung Galaxy Case pictureKate Spade Floral Vintage for Apple iPhone iPod Samsung Galaxy Case
$9.5
Kate Spade Floral Vintage for Apple iPhone iPod Samsung Galaxy Case pictureKate Spade Floral Vintage for Apple iPhone iPod Samsung Galaxy Case
$9.5
Kate Spade Floral Vintage for Apple iPhone iPod Samsung Galaxy Case picture






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