Text field problem

Hi, who can help me with this

I've done a few members bij field using insert-> control-> field = 1 domain name

and I did I got the movie the following lines of script

put vacuum in the field 1 = to start with a blank

then I put this line for the random words

put random word (5) of "open zien gaan few minute" in field 1

the problem is that the field is not considered to be a field

and so far there is no display text

TIA

Herman

Assuming that really name you your field "Field 1" then try:

put word at random (5) of "open zien gaan few minute" in the field "Field 1"

Tags: Director

Similar Questions

  • iOS text field problem.

    I need the user to enter a Word, so I added a simple text field to the stage. However, it behaves strangely on the real device (iPod Touch). Attached are two screenshots that show how the font size increases when the input is activated. Everyone knows about this problem?IMG_0013.PNGIMG_0014.PNG

    Hello

    I think that you have specified a textFormat to text. You must add the following

    Assuming that this is the format

    var txtFormat:TextFormat = new TextFormat();

    txtFormat.size = 20;

    T1 = new TextField();

    T1.defaultTextFormat = txtFormat;

    Apply the default text format that we just put in the text that is already in the text field ('g')

    Otherwise the default text format apply to * new * text * typed * in the text field!

    Without this, the original text in text fields ('g') will use the default value for a

    Flash text (Times New Roman 12pt), rather than the defaultTextFormat (Times New Roman 20pt) field.

    T1.setTextFormat (T1.defaultTextFormat);

    addChild (t1);

    This affects any existing text in the text field in the specified format (making it the same as the default value). Now, when the text field is rendered first uses the default format that you set, and when you type also uses this same format, and so the format is no longer able to change.

    I hope this helps.

    Samia

  • Verification of the text field problem and requiring an option in the drop-down field

    I have a form with several fields that if the user enters information in one or more of the

    fields, I need to check that the drop-down list field is not empty.

    I got this to work, but now I find that if the user deletes the text in the text field, the user always receives the error message. Here is the script I use:

    If

    ((form1.page1.ListFilesFolders.rawValue) ! = null & & (form1.page1.windsNtwkAccess.rawValue) == null);

    {

    xfa.host.setFocus (form1.page1.windsNtwkAccess);

    xfa.host.messageBox ("Please make a selection in the field of Windows network."

    , 'Need to selection' , 1 , 0);

    }

    Thank you

    MDawn

    Makes sense... the field is null when the user deletes the text. You could put a white in these areas as default values and test for this instead of null. Now, when the user empty field, it will be null and will not empty so that the message will not appear.

    Make sense?

    Paul

  • Board for the dynamic text field problem

    I'm generating three text fields using an array of text data. The only text that appears is the content of the last element of the array. I have attached my code. Any ideas why three text fields are not created with the text inside elem table?

    Thank you!
    -Aaron

    These depths are not going to change, so each textfield replaces its predecessor. and then they all overlap because you do not change the ownership of the FLF to your textfields. (and your textformat object is not something useful, yet).

  • CUSTOM TEXT FIELD PROBLEM

    public class CustText extends TextField{
        private String _text;
        private FontFamily _fontFamily1;
        private int _size, _color;
        private Font _headFont = null;
    
        public CustText(String _text, int _size,int _color, long _property)
        {
            super(_property);
            this._text = _text;
            this._size = _size;
            this._color = _color;
        }
    
        protected void paint(Graphics g)
        {
            try{
                _fontFamily1 = FontFamily.forName("aerial");
            } catch(ClassNotFoundException e) {
                    _fontFamily1 = Font.getDefault().getFontFamily();
            }
            _headFont = _fontFamily1.getFont(Font.PLAIN,_size);
                g.setColor(_color);
            g.setFont(_headFont);
            g.drawText(_text,0, 0);
        }
    }
    

    I use the above code to customTextfield, the problem here is, when it is used to display long text that does not move to the next line, only the first line is painted, the rest of the lines are missing

    Graphics.drawText draws text on a single line.  This example allows input of multi line.

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-custom-field-using-attributes-of-OT...

  • focus with custom text field problem

    Hello

    I am new to BB dev., trying to write a small program with two CustomTextFields, but faceing the problem, then try to verify that CustomTextField is selected (the focus).

    CustomTextField (NumericTextField)

    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.component.EditField;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.system.Characters;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Font;
    
    public class NumericTextField extends Manager
    {
    
        private final static int DEFAULT_LEFT_MARGIN = 10;
        private final static int DEFAULT_RIGHT_MARGIN = 10;
        private final static int DEFAULT_TOP_MARGIN = 5;
        private final static int DEFAULT_BOTTOM_MARGIN = 5;
    
        private final static int DEFAULT_LEFT_PADDING = 10;
        private final static int DEFAULT_RIGHT_PADDING = 10;
        private final static int DEFAULT_TOP_PADDING = 5;
        private final static int DEFAULT_BOTTOM_PADDING = 5;
    
        private int topMargin = DEFAULT_TOP_MARGIN;
        private int bottomMargin = DEFAULT_BOTTOM_MARGIN;
        private int leftMargin = DEFAULT_LEFT_MARGIN;
        private int rightMargin = DEFAULT_RIGHT_MARGIN;
    
        private int topPadding = DEFAULT_TOP_PADDING;
        private int bottomPadding = DEFAULT_BOTTOM_PADDING;
        private int leftPadding = DEFAULT_LEFT_PADDING;
        private int rightPadding = DEFAULT_RIGHT_PADDING;
    
        private int totalHorizontalEmptySpace = leftMargin + leftPadding + rightPadding + rightMargin;
        private int totalVerticalEmptySpace = topMargin + topPadding + bottomPadding + bottomMargin;
    
        private int minHeight = getFont().getHeight() + totalVerticalEmptySpace;
        private int width = Display.getWidth();
        private int height = minHeight;
    
        private EditField editField;
    
        public NumericTextField()
        {
            super(0);
    
            editField = new EditField(EditField.FILTER_REAL_NUMERIC);
            add(editField);
        }    
    
        protected void sublayout(int width, int height)
        {
            Field field = getField(0);
            layoutChild(field, this.width - totalHorizontalEmptySpace, this.height - totalVerticalEmptySpace);
            setPositionChild(field, leftMargin+leftPadding, topMargin+topPadding);
            setExtent(this.width, this.height);
        }
    
        public void setTopMargin(int topMargin)
        {
            this.topMargin = topMargin;
        }
    
        public void setBottomMargin(int bottomMargin)
        {
            this.bottomMargin = bottomMargin;
        }    
    
        protected void paint(Graphics graphics)
        {
            graphics.drawRoundRect(leftMargin, topMargin, width - (leftMargin+rightMargin), height - (topMargin+bottomMargin), 5, 5);
    
            boolean longText = false;
            EditField ef = (EditField)getField(0);
            String entireText = ef.getText();
    
            String textToDraw = "";
            Font font = getFont();
            int availableWidth = width - totalHorizontalEmptySpace;
            if (font.getAdvance(entireText) <= availableWidth)
            {
                textToDraw = entireText;
            }
            else
            {
                int endIndex = entireText.length();
                for (int beginIndex = 1; beginIndex < endIndex; beginIndex++)
                {
                    textToDraw = entireText.substring(beginIndex);
                    if (font.getAdvance(textToDraw) <= availableWidth)
                    {
                        longText = true;
                        break;
                    }
                }
            }
    
            if (longText == true)
            {
                ef.setText(textToDraw);
                super.paint(graphics);
                ef.setText(entireText);
            }
            else
            {
                super.paint(graphics);
            }
        }
    
        public int getPreferredWidth()
        {
            return width;
        }
    
        public int getPreferredHeight()
        {
            return height;
        }
    
        protected boolean keyChar(char ch, int status, int time)
        {
            if (ch == Characters.ENTER)
            {
                return true;
            }
            else
            {
                return super.keyChar(ch, status, time);
            }
        }
    
        public String getText()
        {
            return ((EditField)getField(0)).getText();
        }
    
        public void setText(final String text)
        {
            ((EditField)getField(0)).setText(text);
        }
    }
    

    and in my screen content trying to check:

    NumericTextField focusImput() {
        NumericTextField focusField;
        if (_fieldFrom.isFocus()) {
            focusField = _fieldtFrom;
        }
        else {
            focusField = _fieldTo;
        }
        return focusField;
    }
    

    but it always returns me _fieldTo...

    NumericTextField definition:

    _fieldFrom = new NumericTextField();
    _fieldFrom.setChangeListener(this);
    manager.add(_fieldFrom);
    
    _fieldTo = new NumericTextField();
    _fieldTo.setChangeListener(this);
    manager.add(_fieldTo);
    

    Maybe someone to guide me how to correctly focus feature?

    Thanks in advance.

    Then you need two slightly customized EditFields - their main customization would be limiting their width, as well as making them focusable/unfocusable. So, something like this should work:

    public class NumericTextField extends EditField {
      // override the constructors used in your code, adding FILTER_REAL_NUMERIC
      // ...
      private int maxWidth = Integer.MAX_VALUE >> 1;
      private boolean focusable = true;
    
      protected void layout(int width, int height) {
        super.layout(Math.min(maxWidth, width), height);
      }
    
      public void setMaxWidth(int width) {
        maxWidth = width;
        updateLayout();
      }
    
      public boolean isFocusable() {
        return (isStyle(FOCUSABLE) & focusable);
      }
    
      public void setFocusable(boolean on) {
        focusable = on;
      }
    }
    

    If you want to place the fields, use setMargin - he is documented in OS 6.0 but works since OS 4.2.

    Use setMaxWidth to, well, set desired maximum width (otherwise EditField tenorman to the top of the entire available width). Use the setFocusable to toggle the field. In addition, you can play with the Visual States for the field you turn, but it's an exersize for another day. First of all make sure that it works and you know how to use it.

  • 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?

  • 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?

  • 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 %)" » ;

    }

  • problem with the characters of the text field

    Hi all

    I'm missing a few characters, once I insert the text in a dynamic text field. characters are not lacking by saying; they are replaced by empty squares.

    characters such as the euro symbol and accentuated German letter.

    What is weird is that the other German accented letters appear. If only a few selected are missing.

    How Ive set up the FLA:

    (1) I added 4 text fields to the scene to police im using, Arial, one for each font style: normal, italic, bold and bold italic and in all 4 fields ive incorporated all Latin characters (to include the German characters accentuaded and im guessing it is in the punctuation group that contains the euro symbol so that one is also incorporated), not to mention as lowercase, uppercase, numeric, and all the groupd default to include the basic text.

    (2) I have a dynamic text field created with createTextField, and set up the ActionScript code following (2):

    This.createTextField("hello_txt",0,10,10,100,20) ("T_text", 1,0,10,Stage.width-60, 50);

    var myFmt = new TextFormat();

    myFmt.size = 12;

    myFmt.leading = 3;

    myFmt.font = "Arial";

    T_text.html = true;

    T_text. AutoSize = 'left ';

    T_text. Multiline = true;

    T_text.WordWrap = true;

    T_text. Selectable = false;

    T_text.embedFonts = false;

    T_text. TextColor = "0 x 666666 ';

    T_text.htmlText = _global.gallery_1_image_text_1; This holds the im text, called in a database.

    T_text.setNewTextFormat (myFmt);

    now, I'm composing text in a database.

    When calling the text from the browser's address bar, there is no missing characters.

    It's just when I make this appeal of flash and load the text in the dynamic text field, that the characters will be missed.

    Here is a link to a screenshot of the text that is displayed in the text field Dynamics defective flash.

    http://img210.imageshack.us/img210/340/UTF8.PNG

    any ideas? I mean, it seems that the arial font is missing some characters accented! because the code that I have installed loads other accented characters.

    someone has seen this problem before and know how to solve?

    concerning

    stir in your policy.

  • Problem to browse to files in the page with the text field with special characters

    Hello.
    I have a very interesting thing happening in my APEX (4.0.1) application.

    I have problems with a text field, because when I insert the text 'aaaaa' and send the page, the text is transformed in "Aaa£ aa.
    After some time trying to understand the game characters and translations and etc, I realized that this thing happened in some pages.

    Then, I started to remove components of the page where it happens and I discovered that what initially is an element to browse file...
    Every time I have send the page, if there is an element of browse file created on the page, the text is changed. If I delete the queue item browse, when submitting the page, the text remains correct.

    Is it supposed to work like this? And if yes, why is it?

    Thank you.
    vssantos

    Published by: vaissantos on April 1st, 2011 22:45

    Is it supposed to work like this?

    No, of course not.

    Of one of your previous posts, it seems that you use the APEX? If so, similar problems have been reported a number of times before: + {: identifier of the thread = 1104224} + suggests a fix.

  • Problem with the length of the text fields of form in Firefox on OSX

    I just spotted a problem with this in a page on a site, with two forms side by side. (limited space has highlighted it.)

    FF on Mac is essentially longer text fields that any other browser:

    http://www.goodsafariguide.com/trade/loginfail2.php

    If someone knows a solution to do this, it would be great.

    If this isn't the case, I'll just reduce their length so that at least they are not crushed in any browser (even if they are going to be a little short in all browsers other than FF Mac).

    http://www.goodsafariguide.com/trade/loginfail2.php

    Thank you.

    Just use some css to specify width:

    {entry
    Width: 190px;
    }

  • Problem with the display in the text field font

    When I create the static text field, choose the font: Arial, Tahoma or Verdana or trebuchet

    Anti-aliasing on the police of device use and put the text in regular style and "BOLD"

    then, the text that is displayed in the style "BOLD" looks the same for all fonts

    03.png

    The device font is roughly what its name suggests.  It uses a police she chooses what the machine is available - with some to find the one that corresponds to the planned police (I don't know how intelligent the font engine is that it can determine what a font looks like, especially one who does not - I suspect human intervention in the process).

  • Problems with the filling of a text field with 2 other fields data


    I have 3 domains Tools_1a_pri, Tools_1a_pri_other, Tools_1a_pri_txt.

    Tools_1a_pri is a drop-down list box with a predefined list. One of the options is the 'other '.  If 'Other' is selected, the text Tools_1a_pri_other field becomes visible for users to enter the name of the other tool.

    The Tools_1a_pri_txt is a text field with a calculation that shows a text indicating that no tool has been selected or the Tools_1a_pri & or Tools_1a_pri_other.

    When I select one of the predefined tools, everything works.  When I choose the other, it seems that nothing has changed.  Must I click another field before.  It's confusing for the user.

    Tools_1a_pri validate code
    this.getField("Tools_1a_pri_Other").display = event.value is "Other"? Display.visible: display.hidden;

    Computer Tools_1a_pri_txt code
    If nothing is selected, follow these steps
    If (getField("Tools_1a_pri").value.length < 2) {}
    event.target.textColor = color.red
    Event.Value = "no identified main tool";
    } else if (getField("Tools_1a_pri").value! = 'Other') {}
    If not do that if the other is selected
    event.target.textColor = color.black
    Event.Value = getField("Tools_1a_pri").value;
    } else if (getField("Tools_1a_pri").value = 'Other') {}
    If not do so if the other is not selected
    event.target.textColor = color.black
    GetField("Tools_1a_pri").value = Event.Value + "-" + getField("Tools_1a_pri_Other").value;
    }

    You have made the classic mistake of using the assignment operator in a statement instead of the comparison operator. Change this line:
    } else if (getField("Tools_1a_pri").value = 'Other') {}

    To do this:

    } Else if (getField("Tools_1a_pri").value == 'Other') {}

  • problem by turning the dynamic text field

    Hi all

    In an application, I created a dynamic text field and then try to shoot with the _rotation method but it became invisible. Please respond if anyone knows something about this.

    If you do not see your text, you're not embed fonts.

    When you use actionscript to embed a font, you must have the fonts in your library with a connection id, create a textformat instance and assign the property and finally give the textformat to your textfield.  for example

    _root.createTextField ("txt", _root.getNextHighestDepth (), 50,50,50, 50);
    _root.txt.embedFonts = true;
    _root.txt.text = "Hello";
    _root.txt._rotation = 20;

    var tfor:TextFormat = new TextFormat();

    Tfor.font = "yourfontslinkageid";   // <- linkage="" id="" of="" font="" in="" your="">

    _root.txt.setTextFormat (Tfor);

Maybe you are looking for