Using ActiveRichTextField with USE_TEXT_WIDTH

I use JDE 4.3

I have 4 ActiveRichTextFields within a HorizontalFieldManager:

public VvfUpperField(Font[] fonts, int[] backgroundColors, byte[] attributes, long style, QuotesConstants qc)    {        super(NO_VERTICAL_SCROLL | NO_HORIZONTAL_SCROLL);

        for(int n =1; n<=4; n++)        {            add(new ActiveRichTextField(" bbbbbbbbb ", qc.offsets3, attributes, fonts, qc.fg2, backgroundColors, (long)ActiveRichTextField.USE_TEXT_WIDTH));        }    }

the ActiveRichTextField range of the length of a text. But as a test, I placed "bath". When I open the .cod file in any Simulator (4.3 - 5, 0) works perfectly. But when I try to debug the program (whether in bb JDE or eclipse 3.4) launches an "illegalArgumentException". When I checked the ActiveRichTextFields width, the width is set to-1.

I tried to search using the above search tool, but I can't find an answer. I know he called the text to the line, but is there a constant style to do this, without having to make my own method?

With a RichTextField, the string that is passed in is formatted according to the fonts and the offsets passed to.  This article explains this process:

Comment - formatting text in a RichTextField
Article number: DB-00124
http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

If you have a sequence of policies and shifts and then provide the field with an arbitrary string, which is what you seem to do, then he will not like the combination.  II this happens?

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • How to make a web page to get the new tab page?

    I go to a web page a lot, but it does not appear as a tile on the new tab page. I got it in the past, but he went. I would like to get back into my tiles.

  • The "get Messages" button is not active or does not

    I installed Thunderbird two days ago and use a global mailbox. The button "Get the message" gets it no emails. However, if I press each mailadress individually, I receive emails correctly. Hope someone knows how to solve this problem.

  • download options

    When I download something it used to have 2 options, open and save, and below was a box saying: 'do this for every file like this' or something, I checked it, but I changed my mind, I want the option to be open and save it again, how do I do this?

  • Re: Satellite U305-S7477 - problem with a clean installation of recovery disks

    I'm trying to do an OS clean installation of Vista on a new hard disk, the installation proceeds correctly, but in the end, instead of asking me to create a user id and password as the machine makes first start upward when it is new, it shows a login

  • Support pilot Solution Menu EX

    Keep getting error a driver support Solution Menu EX is not installed, after you use the installation CD to install my printer HP Envy 4500 e-all-in-one.    Have Windows 7 Home Premium operating system.