Rich text field, scroll problems

Hello world

I currently have a problem with the rich text fields.  I have a selected rich when custom text field (onFocus), it colors the blue text when not selected (onUnfocus), the text is white.

I have Setup several of my RichTextFields in a VerticalFieldManager so they can be scrolled as a list.

Now scrolling works on the following simulators:

Bold 9000 4.6.0.266

Curve 8520 4.6.1.272

But no scrolling does work on this Simulator:

Bold 9700 5.0.442

What Miss me?  I know the o/s changed, but if it should not be backward compatible?

I use Blackberry JDE component Package 4.2.1

Any help would be greatly appreciated.

I found the problem.  The super I was calling was super (text, Field.FOCUSABLE), this caused the 9700 Simulator not to focus the richtextfields.

The Builder suitable for call is super (Field.FOCUSABLE), and that fixed the issue.

Now, I have another problem.  Suddenly, I added a few images, the background (they are all less than 300 KB) tested on simulators of 9000 and 8520, it worked.

When I test it on the 9700, it says net.rim.device.api.system.Application not found

Hint anyone?

Tags: BlackBerry Developers

Similar Questions

  • It is not possible to post in this forum of TPT using Rich Text field?

    Can anyone else verify if able to type directly display Rich Text field using the STANDARD Android browser?

    I have to switch to the HTML tab so that the keyboard to appear and to be able to type.

    Have just checked on Galaxy Tab 10.1 and with this device it is possible to enter directly in the Rich Text field.

    Posted by my TPT in the rich text box by using the standard browser of Android.

  • Rich text fields

    I created a form with fields of rich text in LiveCycle. However, when my users with Acrobat, fill out the form, they get this error when you try to use the features of rich text as bold text:

    This document restructs some Acrobat features allowing extended features in Adobe Reader. To create a copy of the document that is not restricted (and extended no features in Reader), click on save a copy.

    How can I allow rich text features to extend further rights to complete and record in the drive?

    This area was created not as a rich text field. The error would occur if you're in Acrobat or Reader and it is indicating that you try to use a feature that you have not activated (bold added to a plain text field).

    Activate you the support of rich clickinng on the field text, then watching the object palette, then the field tab and you will see a list drop-down format of the field that will say either about Pailn or Rich text Affectez_ text him the RTF.

    I modified your sample for this field, so that you can see. Once you select the field you can also activate the RichText toolbar by pressing Ctrl-e.

    Paul

  • Pop the text field scrolling buttons on the stage

    Hello all;

    I am very new to Flash so please bare with me. If anyone can point me to some examples I would really appreciate it. I have 5 buttons on my stage (in fact they are just text that I made in buttons); I would like the user to be able to click on each of them, and it appears a text field scrolling where they can read and scroll the information in the text field and then they can go back and click Next and so on. On the left side of the stage is the buttons and on the side right would be the scrolling text field. Now I realize that I could accomplish this using frameworks separated for each button and just pointing to these images, but I feel that there is an easier way... There must be there is something I'm definitely missing...

    Thank you d ' attribute
    T

    A warning first. I have not tested this code, but it covers most of what is needed to do this with AS3.

    var source: String = "myTxtFile.txt";
    var dataFormat:String = pouvez;

    var loader: URLLoader = new URLLoader();
    loader.dataFormat = dataFormat;

    loader.addEventListener (Event.COMPLETE, completeHandler);

    var request: URLRequest = new URLRequest (source);
    try {}
    Loader.Load (request);
    } catch (error) {}
    trace ("there was an error loading the text file");
    }

    function completeHandler(evt:Event):void {}
    var variables: URLVariables = new URLVariables ((evt.target comme URLLoader) .data);

    for (var i: uint = 1; i<= variables.numvars="" ;="">

    var n: String = "button" + i;
    myTexts [n] variable = [n];

    }
    }

  • Issue the hidden rich text field

    Hey all,.

    I am facing another issue, and this time it's the hidden form field. I've got the coldfusion, rich on one page text editor and when submitted to preview in another. However, in order to insert the record later I hide values initial form of hidden fields. All values are fine except for the rich text editor, as it gets out in its entirety and is not hidden at all.

    I guess that this behavior is caused by the text form and one of its closing entire field hidden tags.

    Any thoughts on how to store the rich text in the hidden field?

    see you soon,

    Simon

    Assume that the richText field is called myText. Then, in the action page, you can hide its content with

  • Problem with anti-aliasing on the text fields scrolls

    I am building an application using FlashBuilder and currently running on the latest version of Mac OS x, and test my application in the anti-discrimination Act.  I see the strangest problem; I have a large window, and I use scrollrect to view different parts of the window. When I set the scrollrect and it works very well, the window scrolls to the top just as you expect. But "BOLD" text on the screen becomes much more ugly after I scroll.  I tried to set CacheAsBitmap on the sprite containing that scrolls, but that has no effect. It affects the text that could be in the middle of the window and just move upward, slightly; all of the characters in the text has ruined the subpixel antialiasing.

    Is it a weakness known use ScrollRect? How can I work around this problem?  I tried to turn on cacheasbitmap for all my sprites, but nothing has changed. I tried to set the AntiAliasType my TextField in ADVANCED, but which has also had no effect.

    It is confusing to me, why the rendering is so bad after a scroll. Even when I go back to its original position (scroll down, then upward), the text is ugly. It's almost as if he shot it twice on the screen, but it's probably just a lower level of text rendering.

    Any guidance would be greatly appreciated.

    I've identified the problem. It is caused by a bug in my code, which is the double drawing of text on the other fields. When you have a large font size which is antialised, when you draw a second copy on the top, the aliasing allie to ruin the sweetness of the police. It is the only clue you double drew an object! Very interesting question in vector graphics, can not say once easily when you drew something twice!

  • Text field scrolling fixed height that develops when printing?

    Hi all

    I came across this before, but for the life of me I don't remember: ideas for what is required to set a text box so that the height is fixed and used scroll bars when it overflows the text box text, but on the printing of the document, and then expands so that all the text is visible and will be printed?

    If I remember, it may be a little snippet of JavaScript code that is required, working on a print event?

    All other items will be part of a fluid design so that nothing breaks, however it is important that seen on the screen, the text boxes have a fixed height. Only necessary to expand on print.

    Any suggestions would be much appreciated: I have been on it for hours!

    Thanks in advance.

    Hello

    Take a look at the last page in this example: http://assure.ly/g80MVY

    You'll see how in the preprint event we set the minH for the textfield property and assign a h property on postPrint.

    Hope that helps,

    Niall

  • Rich programmatic text field copy

    I have an application page that the user enters in many areas. Many of the fields are the Rich Text Editor. Users want to duplicate the page and some of the areas including the text rich ones. No problem on the regular fields but I can't the rich text field that you want to copy. I tried the redirection Page and add the fields, but the rich text that gives a few words. I tried to redirect using javascript, but that has not copied the rich text. I also tried to create an element of application to keep the info from RT and pull it in, but it is empty. It seems that the issue of enforcement can not hold RT

    With the help of document.getElementById('RICHTEXT_ITEM').innerHTML Gets the field but may not enter the new page field.

    If someone has done this?

    Oracle Database 11g

    Request Express 4.2.6.00.03

    Laurent

    Hello

    If you like access CHKEditor element content using JavaScript and set to CHKEditor another try

    var lstr = CKEDITOR.instances.Px_ITEM_1.getData();
    CKEDITOR.instances.Px_ITEM_2.setData(lstr);
    

    Replace Px_ITEM_1 and Px_ITEM_2 with your actual element names.

    Most likely, it will not work on APEX 5

    Kind regards

    Jari

  • Labels are centered, but the text fields are not

    I can't seem to convince a RichTextField is centered on the screen.  This is a limitation of this particular area, or I am doing something stupid?  Copy the following code illustrates the problem:

    package com.rim.samples.hello;
    
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.RichTextField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    
    final class HelloScreen extends MainScreen {
        public HelloScreen () {
            super();
    
            // The title is centered
            LabelField title = new LabelField("Test Field Attributes",
                    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH | LabelField.HCENTER
                    | LabelField.VCENTER);
            setTitle (title);
    
            // A simple label added to the main screen is centered
            add (new LabelField("Yay! I'm centered!", LabelField.FIELD_HCENTER));
    
            // But a rich text field refuses to center
            add (new RichTextField("Boohoo, I'm not!", RichTextField.FIELD_HCENTER));
    
            add (new LabelField("Labels rock!", LabelField.FIELD_HCENTER));
    
            // The vertical field manager makes no difference
            VerticalFieldManager v = new VerticalFieldManager(VerticalFieldManager.FIELD_HCENTER);
            v.add (new RichTextField("field managers don't help :(", RichTextField.FIELD_HCENTER));
            v.add (new LabelField("VFM Labels work!", LabelField.FIELD_HCENTER));
            add(v);
    
        }
    }
    

    I tried FIELD_RIGHT but when HCENTER does not, nor does RIGHT.  I guess I can use a tag instead, but I was really hoping to use a centered text edit field.  Any ideas?  Thank you

    Blister

    The default behavior of RichTextField should use the full width. Try adding the RichTextField.USE_TEXT_WIDTH style

  • Rich text error

    Hello

    I try to use a rich text field to add the bold/italic/underlined words in a rich text field.

    For this I use the following javascript code:

    this.value.exData.loadXML (xhtml , true);

    Where xhtml contains the entire chain: (using, for example, < b > < / b > for Butcher)

    < xmlns =""body "http://www.w3.org/1999/xhtml" xmlns:xfa ="http://www.xfa.org/schema/xfa-data/1.0/" > < p > < b > TEXT < /b > < / p > < / body > ""

    The PDF file is generated, but an error is detected when opened with Adobe Reader (Both XI and DC versions), and no text is generated for the field.

    But if the same PDF is opened using Chrome, it works very well.

    Any idea on this issue?

    Thanks in advance,

    KR,

    Agustín.


    In order to solve this problem, the javascript must be run alongside Server (instead of customer). I guess that Adobe Reader is not able to read the tags correctly on the client side.

  • How to add bullets to text field?

    I made a text field scrolling with the UIScrollBar component. Now I need chips in this text. How to create?

    You can use html

  •  
  • Tags to create chips if you assign the text as htmlText.

  • I can't read my emails or spam, to try to send it, I get the error message 'Unable to load the rich text editor', enamel works with Google, ok, how can I solve this problem in Firefox?

    Error message for Virgin Gmail

    "Unable to load the rich text editor.

    What is the solution?

    You can see https://support.mozilla.com/questions/896294
    and look at this thread, the only real connection so far is it is very recent and it involves blank e-mail.

    Those who are in this thread say blank incoming emails doesn't work except if they Disable Adblock Plus from the icon of ADP.

    In fact, the rich text editor would be in a separate file, there is most likely a connection to ADP because some of these files may be blocked. I used to have a lot of problem in this forum on the web and the tools were blocked (didn't really need them) just because I block a lot of things here: like animals to fur in nurse uniforms, a trash can (toolkit) and that blue area at the bottom of this page that interferes with scrolling and the use of the key 'end '.

    Something seems to be wrong with your profile, clicking on it does not bring it upwards.

  • Not allow any data to be pasted into a Rich Text Editor Field

    Version 4.1.1.00.23

    Hello

    Does anyone know how cannot don't not the user to paste data into a field of Rich Text Editor?

    I want to only allow them to enter data into the rich text editor and not paste from another source.

    Thank you

    Joe

    I was able to solve this problem.

    The only tags that are allowed for my requirement are: p, ol, ul, li, em, strong, a, href.  No other tags are allowed.

    The query is:

    SELECT REPLACE (REGEXP_REPLACE (REGEXP_REPLACE (: P28_PATH_TO_GREEN)))

    , '<'            >

    '(/?'           || -\1 is optional / can

    ' (' || -one of the following conditions:

    ' p | »         ||

    ' ol | »        ||

    « ul | »        ||

    « li | »        ||

    EM | »        ||

    "strong" |

    ' a | »         ||

    'href ' |

    ')'          ||

    '[ >]'        ||  -Then, space or

    ')'

    , '<>

    1

    0 - replace all occurrences

    'i' - case-insensitive

    )

    , '<[^`][^>]*>'

    )

    , '<>

    , '<>

    )

    DOUBLE;

    Here's how it works:

    1. The inner REGEEXP_REPLACE inserts a grave accent above all good tags (p, ol, ul,... become 'p,' ol', ' ul,...)
    2. The outdoor REGEXP_REPLACE eliminates any tag that does not begin with a grave accent, leaving only the good tags
    3. REPLACE removes serious accents, added in step 1.
    4. Implement a after submit Page calculation on the Page element using the Type of query SQL (single return value).

    Thank you

    Joe

  • Problem of text selection in the text field for entry in the emulator

    I'm having a problem of text selection in a text field when I run my application in the emulator Playbook. Let me see if I can expose the problem here:

    1. The field in question is a classic text, text with an integrated in police entry field. The domain is in a SWC and referenced in another FILE.
    2. The code is set up such that when a user clicks the field function is called to highlight all the text. The code is more or less as follows:
    thisField.addEventListener(MouseEvent.CLICK, onFieldClick);
    
    private function onFieldClick(event:MouseEvent):void
    {
       var selectedField:TextField = event.target as TextField;
       selectedField.setSelection(0, selectedField.text.length);
    }
    

    The problem I'm having is that when I try clicking on the emulator, the text field in 'domain' is sometimes selected as expected, sometimes not. When the text is not selected as expected the cursor always appears in the field and the Playbook keyboard slides up by below. What is particularly problematic, that's what often happens, is that the whole scene moves upward on 10px when it is clicked on the ground. If I try to click on the same ground once again, another change to the top of 10px or so, etc..

    So why the text not properly selected and why the scene evolves upwards?

    I realize that more information may be required from me to correctly solve this problem, but if someone has all understand why this may be the case, I would be happy to learn from him.

    Thank you

    David

    I can answer the question of displacement.  This is a bug in BB and supposed to be fixed in version «next» SDK

    The question of the selection, I'll guess has to do with the fileld with focus, selection is not possible.  Try to set the focus outside of maybe the text field?

  • Text fields and number 0 problem

    Hello.

    I have very strange problem and I hope someone could help me.

    I have the button group to 7 Coachman, named "group". Each box has its own value for export. (- 3, - 2, - 1, 0, 1, 2, 3). Then I have a text field, named "polje" where the selected value is displayed. If the user check the box with the value of exports 3... text field display number 3 and so on. I get this with this script:

    getField("polje").value = this.getField("group").value;

    So far, everything works perfectly. Now... problem. I have an another textfield, named "procent. Its mission is to show the additional text of specific value.

    If the "polje" field indicating the value 1, 'this' textfield should display "30%", if the value is 2 then "60%"...and so forth.» Everything works fine... only with 0... .then textfield stay empty but it should display '0% '. I don't know why.

    The script I use:

    var p = this.getField("polje").value;

    Si (p == « ») {}

    Event.Value = "";

    }

    Else if (p == 0) {}

    Event.Value = "(0%)" » ;

    }

    Else if (p == 1) {}

    Event.Value = "(30-40 %)" » ;

    }

    Else if (p == 2) {}

    Event.Value = "(60-70 %)" » ;

    }

    Else if (p == 3) {}

    Event.Value = "(90-100 %)" » ;

    }

    Else if (p ==-1) {}

    Event.Value = "(-30-40 %)" » ;

    }

    Else if (p ==-2) {}

    Event.Value = "(-60-70 %)" » ;

    }

    Else if (p ==-3) {}

    Event.Value = "(-90-100 %)" » ;

    }

    Where I did something wrong?

    You should get the field values as strings and compares them to the strings, something like:

    var p = this.getField("polje").valueAsString;

    if (p === "") {

    Event.Value = "";

    }

    ElseIf (p = '0') {}

    Event.Value = "(0%)" » ;

    }

    ElseIf (p = '1') {}

    Event.Value = "(30-40 %)" » ;

    }

    ElseIf (p = '2') {}

    Event.Value = "(60-70 %)" » ;

    }

    ElseIf (p = '3') {}

    Event.Value = "(90-100 %)" » ;

    }

    ElseIf (p = '-1') {}

    Event.Value = "(-30-40 %)" » ;

    }

    ElseIf (p = "-2") {}

    Event.Value = "(-60-70 %)" » ;

    }

    ElseIf (p = '-3') {}

    Event.Value = "(-90-100 %)" » ;

    }

Maybe you are looking for