Text (of indication) in EditField of guest

Hi all

The user interface and Guide of Navigation, in the section of practices for text fields, mentions: "use prompt text that when space on a screen is limited and you can't include a label or an explanatory text. Prompt text appears in the field and disappear when users must type. »

I thought it meant that the prompt text (or 'text') is available as a property, but I was not able to find such a property.  What is meant, or they talk just about programmatically people doing their own prompt text.

Thank you

Bill

I've never seen a field that supported the text prompt in this way.  It is not hard to do, a number of Threads have been posted about it, memory, that they suggest you substitute onFocus so that the prompt text is deleted if there, and onUnfocus to put it back if there is nothing in the field.

Tags: BlackBerry Developers

Similar Questions

  • Adding a layer of text using the creation Date or guest Date

    I want to add a text layer for the date. My problem is if the file has the EXIF info, the script below works, but if the image has no EXIF info (for example, sample sunset sunset in Windows), it will not ask for the date so I can type the date that I love. What I'm doing wrong here?

    Here's the example script. Open an image and run the script:

    var originalUnit = preferences.rulerUnits

    preferences.rulerUnits = Units.PERCENT

    displayDialogs = DialogModes.NO

    var docRef = activeDocument;

    var exifInfo = docRef.info.exif.toString ();

    If (exifInfo ="") {}

    var phoTime = prompt ("' enter the DAY of the PHOTO in the following format: mm/dd/yyyy" ", 1 January 2012 '");

    }

    else {}

    var numExifItems = docRef.info.exif.length;

    for (var i = 0; i < docRef.info.exif.length; i ++) {}

    exifInfo = exifInfo + docRef.info.exif [i] [0] '=' + docRef.info.exif [i] [1] + "\r";

    Key = DocRef.info.EXIF [i] [0];

    keyData = docRef.info.exif [i] [1];

    If (key == "Date time Original") {}

    var phoTime = keyData;

    var dateArray1 = phoTime.split ("", 2);

    phoTime = dateArray1 [0];

    phoHour = dateArray1 [1];

    var dateArray2 = phoTime.split(":");

    var monthsArray is ['January', 'February', 'March', 'April', 'may', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];.

    "phoTime = monthsArray [dateArray2 [1] - 1] +" "+ dateArray2 [2] + ', ' + dateArray2 [0];"

    var picYr = dateArray2 [0];

    }

    }

    }

    var textRef = docRef.artLayers.add ();

    textRef.kind = LayerKind.TEXT;

    textRef.name = "Date of photography."

    var mytextRef = textRef.textItem;

    mytextRef.size = 14;

    mytextRef.font = "Arial";

    newColor var = new SolidColor();

    newColor.rgb.red = 0;

    newColor.rgb.green = 0;

    newColor.rgb.blue = 0;

    mytextRef.color = newColor;

    mytextRef.position = new Array (50, 40);

    mytextRef.justification = Justification.CENTER

    textRef.blendMode = BlendMode.NORMAL;

    textRef.opacity = 100;

    fill the text layer based on the date of the file, or everything that has been typed for the guest

    mytextRef.contents = phoTime

    Thank you!

    It is the missing line! It worked and thanks! This script simplifies knowing that the date photo copyright release of photos by providing the date where the photo was taken in PSD form with information on releases and which are saved in PDF format.

  • How to disable selection of text to EditField

    Hello.

    How to disable text selection in an EditField?

    I don't want to let the user to copy the content of the text field.

    Thanks in advance!

    I have found that the select() method of the field class must be substituted.

    {} public void select (boolean enable)
    Super.Select (false);
    }

  • How can I make my guest account administrator?

    Vista

    Hello

    You really must make the guest account privilege is important. You can turn OFF
    the guest account. Create additional administrator accounts (including one not to use on a regular basis for)
    text and correction) and name a guest or guests welcome.

    User accounts in Windows Vista
    http://www.optimizingpc.com/Vista/multiple_useraccounts.html

    How to create a new user account in Vista
    http://www.Vistax64.com/tutorials/93009-user-account-create.html

    Manage user accounts - scroll to the bottom to create a new user account
    http://www.vista4beginners.com/manage-user-accounts

    Adding a new user in Windows Vista profile
    http://familyinternet.about.com/od/projects/SS/adduservista.htm

    How to activate the guest account enabled or disabled in Vista
    http://www.Vistax64.com/tutorials/126933-guest-account-turn-off.html

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Border and background for EditField

    I want to create EditField rounded, white but I use jre 4.5 Blackberry so I can't use:

    myEditField..setBorder(BorderFactory.createRoundedBorder(new XYEdges(2, 2, 2, 2),  0x35586C, Border.STYLE_SOLID));
    

    Because doesn't have class BorderFactory or border.

    I tried to draw a rectangle inside the paint method:

    myEditField = new EditField(){
                public void paint(Graphics g) {
                    super.paint(g);
                    int prevColor = g.getColor();
                    g.setColor( 0xffffff);
                    g.fillRoundRect(0, 0, getWidth(), getHeight(), 10, 10);
                    g.setColor(prevColor);
                }
            };
    

    I look fine, but the problem is that text inserted inside the EditField cannot be seen...

    Call super.paint () after you make your bottom paint. You cover it up with the fillRoundRect. Alternatively, if you are wanting just a border, you can use drawRoundRect().

  • Edition of text flowing out of field.

    Hi guys,.

    IM using a customEdit field, in which the edit field will be 3/4 of the screen width and I used EditField.NO_NEWLINE to height of restict to editField to a single line. Inorder to get the scrolling effect I set at the HorizontalFieldManager with horizontalScroll style.

    When im text input English it works fine. But when im dealing with Arabic text, as the script starts to the right of the editField, the text flows in the editField that must take place when the field is filled with comletely.

    I have some pictures... .but im not able to download...

    Answer as soon as possible.

    Thanks & best regards,

    Sree Harsha

    Hello

    I got the soln... I put the DrawStyle.Right for EditField style that worked... but I did not understand why Field.Field_Right did not work...

    Thank you best regards &,.

    Sree Harsha.P

  • Text short indexed on a filter

    Hi guys,.

    I created a prompt to filter the field "Indexed short text 1" on a dashboard. I have already create the filter "indexed short text is fast" on the detailed report. However I have nothing even if I paste the exactly the text in this field on my guest.
    It is possible to filter a short txt on dashboards on the diameter OUTSIDE of CRM?
    Thanks in advance

    Rafael

    Absolutely, you can use a short text indexed as guest of filter field. Make sure you build the guest and the report from the same area and check your fields and settings. You can start with a very simple guest + report in order to help solve the problems.

  • Microsoft Solitaire: text indication at the bottom left of the screen is unreadable.

    Original title: microsoft solitaire

    the text of the indication at the bottom left of the screen is unreadable. It looks like some kind of trouble puncuation or something. y at - it a patch or an option that I can use to solve this problem.

    Hello

    ·         What operating system is installed on the computer?

    ·         It happens with Solitaire?

    If you use Windows Vista or Windows 7, then try to TURN the game.

    (a) click Start

    (b) click on Control Panel and open programs and features

    (c) and then click on Windows to enable or disable features.

    (d) If you are prompted for an administrator password or a confirmation, type the password or provide confirmation

    (e) search for the games and then alone.

    ·         To turn a Windows feature off, clear the check box.

    ·         To turn a Windows feature, select the check box next to the feature.

    Refer to

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-Windows-features-on-or-off

    Diana

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • EditField specific text in bold

    Hello

    I want "BOLD" of specific letters in my EditField.

    public void changeToBold() {}
    try {}
    alphaSans = FontFamily.forName ("without BBAlpha");
    Police = alphaSans.getFont (Font.BOLD, 9, Ui.UNITS_pt);
    editField.setFont (do);
    } catch (ClassNotFoundException e) {}
    Dialog.Alert ("Alert");
    }
    }
        
    public void changeToPlain() {}
    try {}
    alphaSans = FontFamily.forName ("without BBAlpha");
    Police = alphaSans.getFont (Font.PLAIN, 9, Ui.UNITS_pt);
    editField.setFont (do);
    } catch (ClassNotFoundException e) {}
    Dialog.Alert ("Alert");
    }
    }

    I add the text to the EditField since a sqlite database.

    While (C1. Next() & {c2.next ()}
    R1 = c1.getRow ();
    R2 = c2.getRow ();
    Temp = r2.getString (0);
             
    changeToBold();
    Letexte += temp;
    changeToPlain();
    Letexte += r.1getString (0);
    }

    * Maybe there is a way to create a LabelField, which contains the text I want to "BOLD", and then add it at the same time to the EditField?

    Thank you

    You can do this by using a RichtextField.

    The text of a RichTextField

    http://supportforums.BlackBerry.com/T5/Java-development/format-text-in-a-RichTextField/Ta-p/445038

  • EditField with scrolling text

    Hello

    I need a field similar to the EditField, but with the scrolling text. EditField jumps in a new line, if the content has several lines, but I would like the text to be in a single line and to be able to scroll to the right and to the left if it is greater than a single line.

    How can I do?

    Thank you!

    You can use the EditField, but place it in a HorizontalFieldManager you create using "HORIZONTAL_SCROLL" as a style.

    It will work. I used it in the past.

  • How to copy a text editfield on popupScreen

    I have an editfield on popupScreen and I put a text there, but how I can copy the text and paste it into another application. I don't know it's possible.

    Kind regards.

    You get this free feature if you leave the system adds the elements of the standard menu of fields like BasicEditField.  If you use your own domain, you can use the Clipboard If you want and put things in there and get stuff from there.  See the Javadocs of the Clipboard.

  • EditField when it is full the text does not scroll

    Hello

    Below custom editfield extends EditField. My problem is that the user Pat and field gets complete with text, when the user reaches the end of visible display of the field the text scrolls does'nt user types continuously.

    Should I use a different type of field?

    Any help much appreciated.

    SerializableAttribute public class CustomEditField extends EditField {}
    private members of the class CustomEditField
    defaultFont fonts private;
    used to get the default font
    private string text;

    private int width;
    used to specify the default width of the table cells

    constructor calls the constructor of the superclass
    public CustomEditField (label As String, String initialValue, int maxNumChars,
    long style, int width) {}
    Super (label, initialValue, maxNumChars, style);
    This.Width = width;
    }

    replaces the functionality of getPreferredWidth default to return to a fixed rate
    Width
    public int getPreferredWidth() {}
    / * defaultFont = Font.getDefault ();
    Text = "0000000000";
    Return defaultFont.getAdvance (text); * /
    return this.width;

    }

    replaces the default layout features to set the width of the table
    cell
    Protected Sub layout (int width, int height) {}
    width = getPreferredWidth();
    height = super.getPreferredHeight ();
    Super.Layout (width, height);
    uses the features available to the superclass
    Once the width and height defined
    super.setExtent (width, height);
    use the functionality of the super class setExtent
    Once the width and height defined
    }
        
    {} public void paint (Graphics graphics)
            
    graphics.setBackgroundColor (Color.LIGHTBLUE);
    Super.Paint (Graphics);
    }

    }

    width = getPreferredWidth() inside the layout is the main problem. With this line you ignore Manager parent giving your text box the width of your choice (Integer.MAX_VALUE > 1) and tell him «no, I'll work in this width largely only» If you want to limit the width of the gadget, limit the width of the OneLineTextField with

    protected void sublayout(int width, int height) {
      super.sublayout(Math.min(width, this.width), height);
    }
    

    Of course, private int width should be in OneLineTextField, not CustomEditField. This will allow you to deposit your CustomEditField either. If you want your LIGHT blue background, create the OneLineTextField like this:

    OneLineTextField tweetTextField = new OneLineTextField("", 140, width) {
      protected void paintBackground(Graphics g) {
        int prevBgColor = g.getBackgroundColor();
        g.setBackgroundColor(Color.LIGHTBLUE);
        g.clear();
        g.setBackgroundColor(prevBgColor);
      }
    };
    
  • Text of tip/guest/space reserved on a digital editing field / password

    Hi all

    I am introducing the rapids/tips for the edit fields text in my application. I capture the key in the api keyChar() and therefore

    • show the cue text if the field is empty
    • hide the cue already displayed text when the first character is entered

    According to me, one way to do this is to paint your index directly on the EditField.  This way, the EditField never sees.  And you can paint it in a light color to indicate clearly what is not actually entered.

    Here is an example of code, note that I cut/pasted it from a working application, but changed a few things that I think are not - but it could have messed up it completely...

    private BasicEditField _searchField = new BasicEditField ("", "") {}
    String emptyString = "search by input characters;
    Protected Sub paintBackground (Graphics g) {}
    g.setBackgroundColor (0x00FFFFFF);
    g.Clear ();
    }
    protected void paint (Graphics g) {}
    oldColor int = g.getColor ();
    try {}
    g.setColor (0x00000000);
    Test string = super.getText ();
    If (test == null | test.length ())< 1="" )="">
    g.setColor (0 x 00808080);
    g.drawText (emptyString, 0, 0);
    }
    Super.Paint (g);
    } {Finally
    g.setColor (oldColor);
    }
    }
    };

  • How to select all the text in an EditField?

    Hello

    I'm trying to select all of the text in an EditField using:

    EditField editField = new EditField("Label:", "ABC", EditField.DEFAULT_MAXCHARS, 0);
    editField.setSelection(0, true, editField.getText.lenght());
    

    but the text is not selected. Any idea? Thank you

    I do not see a method called setSelection in EditField docs, so not sure what it does even if it exists. Compile your code?

    When I need to select text, I use something like this:

    editField.select (false);

    editField.setCursorPosition (index1);

    editField.select (true);

    editField.setCursorPosition (index2);

    The text between index1 and index2 is selected.

  • Secret tapping (while only typed text will not appear in the EditField)

    I'm a rookie developer, then I would be happy if you can also provide an example of code for my problem.

    So I make an app that has say EditField EditField and while typing, when the user holds the LEFT SHIFT, the characters are typed are stored in the Secret of string ( without the characters appearing on the screen ) while the on-screen text is replaced with the characters (as the user types to store the secret in Secret text) which is predefined by the programmer.

    Thank you very much for the help.

    Welcome on the support forums.

    If passwordeditfield does not match your needs, you can overwrite keyChar and implement a personalized management.

Maybe you are looking for

  • MacKeeper install nightmare

    After installing the MacKeeper stupidly, I now have a guest user account that never existed since the first get this MBP. MacKeeper is eliminated, along with most of the BS, she has created. Using Malwarebytes that I also deleted /private/etc/St-up.s

  • Windows 10 has beaten Skype.

    After the Windows 10 update, Skype crashes whenever I call / video call someone.If the Win7 compatibility, nothing happened.Facebook works video telephony (Skype). Therefore, the Skype program.

  • iPhone contacts does not drive

    I had two different cars (BMW 328d) and Jeep Grand Cherokee where my iPhone contacts appear to be different contacts in my iPhone.  Both times, they import all the contacts and they also have old contacts which I had deleted years ago.  I checked the

  • iBook G4 airport

    I have an iBook G4 that I use for internet surfing and light DVD however, I switched it on this afternoon to discover that the Mac said that I don't have an Airport card installed. I ran the Apple Hardware Test and he told me there is no anomaly and

  • Example: HP 15-1039wm: I installed a new hard drive. 8.1 disk request coa

    I received a HP 15-1039wm with a bad hard drive. I bought a new hard drive installed and put in a disc of windows 8.1, I burned off the coast of the Digital River, and it ask for the appeal docket number. I think the number of BIOS is not it. How to