Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
krmlkr
Posts: 66
Registered: ‎08-21-2009

OS7: ActiveRichTextField issue

Hi,

 

We are using "ActiveRichTextField" component in our application. We have used following constructor:

 

ActiveRichTextField(String text, int[] offsets, byte[] attributes, Font[] fonts, int[] foregroundColors, int[] backgroundColors, long style)

We have set the Font of text to custom (Bold with small font size).

 

Problem: when our text characters exceeds more than 32 characters, device default font gets set instead of custom Font. We observed this strange issue on BB 9850 (OS7).

 

Is it a OS level issue or device issue?

 

Regards,

Krmlkr 

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: OS7: ActiveRichTextField issue

sounds like a bug

report it in JIRA
https://www.blackberry.com/jira/secure/Dashboard.jspa
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
krmlkr
Posts: 66
Registered: ‎08-21-2009

Re: OS7: ActiveRichTextField issue

Thank you Simon,

 

I am trying to log an issue first time so could you please help me for following:

- Under which project category this issue will come?

- What is a version?

- As there no OS7 devices specified in device list, how should I mention device model?

 

Regards,

Krmlkr.  

Please use plain text.
Contributor
imantung
Posts: 43
Registered: ‎05-26-2011
My Carrier: Telkomsel

Re: OS7: ActiveRichTextField issue

Any update on this? Is bug already fixed? I also facing same issue.

Please use plain text.
Regular Visitor
tserivdd
Posts: 1
Registered: ‎05-04-2012
My Carrier: Singtel

Re: OS7: ActiveRichTextField issue

Also encountered this issue using a custom field that extends from ActiveRichTextField that we implemented. It seems that after a certain length of text (it's not 19 in my case. around 32 characters like the one specified in this thread http://supportforums.blackberry.com/t5/Java-Development/OS7-ActiveRichTextField-issue/td-p/1301571), the offsets, foreground colors and font settings are reset to default.

 

what i observed is that the offsets and fonts are correct right after it's constructed. however, in the paint() method, the offsets are already wrong. nothing calls any of the setText() methods of ActiveRichTextField in between so i'm not sure what else could be modifying the offsets value of the field.

 

this seems to be a problem when the custom ActiveRichTextField is added to a manager. so could it be a Manager issue?

 

as a workaround, i've created a wrapper field for our custom ActiveRichTextField and i added the wrapper field to the Manager instead. The wrapper is what will call the ActiveRichTextField's paint method. this works only for displaying the ActiveRichTextField's contents properly. but i cannot figure out yet how to support the proper text highlighting.

 

is there any solution already from RIM's side on this matter?

Please use plain text.
Developer
Syamphu
Posts: 33
Registered: ‎10-29-2010

Re: OS7: ActiveRichTextField issue

i got something like this too, is it have been resolve?
Please use plain text.