How would I get the text box

Hello

I want to use a text box, how can I get it? in the edit field or field of basic edition are all just displays as a line, but I need like a box

Try this,

        BasicEditField txtuser = new BasicEditField("", "", 28, BasicEditField.FILTER_EMAIL)
        {
            private int iRectX = getFont().getAdvance(getLabel());
            private int iRectWidth = Display.getWidth() - iRectX - 2;

            public int getPreferredWidth()
            {
                return Display.getWidth();
            }

            public int getPreferredHeight()
            {
                return 30;
            }

            public void layout(int width, int height)
            {
                super.layout(width, getPreferredHeight());
                setExtent(width, getPreferredHeight());
            }

            public void paint(Graphics g)
            {
                g.setColor(0x000000);
                g.drawRect(iRectX, 0, 248, 20);
                super.paint(g);
            }
        };

IT looks like what you want.

------------------------------------------------------------------------------------

Kudo press to say thank you to the developer.
Also, press accept it as a button when you got the Solution.

Tags: BlackBerry Developers

Similar Questions

  • I have a form in which the text area can be developed to accept more text, but the text does not appear on the printed copy.  How can I get the text to print?

    I have a form in which the text area can be developed to accept more text, but the text does not appear on the printed copy.  How can I get the text to print?

    Hi robinm6200,

    Make sure that you have selected 'Document and annotations' under 'Comments and forms' when printing.

    Kind regards

    Nicos

  • How can I get the text of title styles to work?

    Hello
    How do you get the title of the text Styles to work in ss12 (mac)? I can get the character of formatting (e.g. bold, underlined) to work, but can't get the styles to work. I have tried by selecting the text or the text without success box. Here's a short screencast of what I see. Anyone know what I am doing wrong? Thank you

    AVO

    There is a known issue with text Styles in the workspace Expert only.

    The solution is updated 12 in 12.1 using Help Menu/updates of the project. Have you been there and done that?

    If this isn't the case, please cela and let us know the result.

    Thank you.

    RTA

  • How do I enlarge the text box

    I have the latest version of Skype and trying to extend the text box where I write. Now, it seems so small. I know that before you could develop the window moving upwards or downwards according to the needs.

    Someone knows how to do this? Is it still possible?

    http://community.Skype.com/T5/Windows-desktop-client/how-can-I-change-the-height-of-the-input-box-in...

  • How do you get the text of a SystemPrompt in C++?

    Hello!

    Currently, I am trying to use a SystemPrompt in my application, but don't understand how to get the text that the user entered.

    I use the example of:

    http://developer.BlackBerry.com/Cascades/documentation/UI/dialogs_toasts/prompts.html

    The example shows:

    void App::onPromptFinished(bb::system::SystemUiResult::Type type) {
        if (type != SystemUiResult::ConfirmButtonSelection)
            {
            qDebug() << "Prompt Accepted:" << text;
            // The user accepted the prompt.
            }
        else {
            qDebug() << "Prompt Rejected";
            // The user rejected the prompt.
        }
    }
    

    In addition to the bug in the example (her if the statement should be == and not! =), I do not understand where text is supposed to be defined.

    Clues on how to get the textvalue?

    Not necessarily, you can recover the sender of a message to the location:

    SystemPrompt * prompt = qobject_cast(sender());
    QString text = prompt-> inputFieldTextEntry();

    I don't know that it will be deleted automatically, it will most likely not. If you can also destroy it in the slot to prevent the accumulation of instances:

    Guest-> deleteLater();

  • How can I get the text of oracle database data?

    We would like to get the text data to oracle database instead of manually in illustrator, is there a way to do it? Thank you.

    I can not extract data from databases. There may be some plug-ins for automation, somewhere, but not in native mode.

    Mylenium

  • How can I get the text value of an element XML in MXML?

    Hello


    I have the following XML loaded into a variable of XML type:

    Properties of <>
    the RIMpro data collector Configuration < comment > < / comment >
    < key="server.pear.username"/ entry >
    < key = "enter server.apple.retry.times" > 5 < / entry >
    < Enter key = "rdc.proxy.host" > http://192.168.1.2:8080 < / Entry >

    /Properties >

    I can easily get the key attribute displayed in a DataGridColumn by setting the dataProvider my variable and the data in "@key" area  But I don't know how to get the text value in a second column...  Is it possible or do I have to change my XML to something like this:

    Properties of <>
    the RIMpro data collector Configuration < comment > < / comment >
    < key="server.pear.username"/ entry >
    < key = "enter server.apple.retry.times" value = "5" > < / entry > "
    < Enter key = "rdc.proxy.host" value ="
    http://192.168.1.2:8080"""> < / entry > "

    /Properties >

    Thanks in advance.


    Marc

    Yes, you'd better change your XML structure to fit the internal mechanisms of the DataGrid.

    As model dataField require each element of the grid line to have a named property to display, otherwise you will be forced to overcome this model to the custom help labelFunction for the particular column that will implement your custom actions on how to extract the appropriate data for this column of the grid line item. It will be much more complicated that just reorganize your xml structure.

  • How can I remove the text box but keep the text?

    Hello...

    have several pieces of text in text boxes... to delete the text box, just keep the text... Any way to do this without a copy or cut paste?

    TIA

    JJ

    PS: Sorry... WinXP, CS3

    Nope. Copy and paste is the only way.

  • How to copy/paste the text box anchor to its anchor text and remove all checkpoints empty?

    Hi all

    I have a document of a few pages, but a story. The right column is the area of main text and on many places, anchored text boxes are placed which appears on the left column, as shown below.

    I want the text of each text box anchor to cut of his place and sticking to its point of insertion/anchor and remove all of the empty boxes of anchored.

    I'm trying since this morning but I was able to get the anchor object reference. Any help on how to start with will be useful.

    Marie rosine

    anchor_box.png

    OK, let's say you have a main text (not rooted) box and three text boxes that are anchored to the text it contains. One is anchored with text, the second is not anchored and the third argument is empty (I won't get into the anchor vs custom anchor line given that you mention in your message).

    Scroll us through the items on the page:

    function main(){
      var myDoc = app.activeDocument;
      var myPages = myDoc.pages.everyItem().getElements();
      for (var i = 0; i < myPages.length; i++){
      {
        var myPage = myPages[i];
        //Checks that the page is valid, and that it is not a master page. If either is true, skips to the next page.
        if (myPage.isValid == false) continue;
        if (myPage.parent instanceof MasterSpread) continue;
        var myItems = myPage.allPageItems;
        for (var j = 0; j < myItems.length; j++){
          //Current item.
          var myItem = myItems[j];
          //If myItem doesn't have a Character parent, it is not anchored.
          //The first and third text frames would fail this test.
          if (!(myItem.parent instanceof Character)) continue;
          //We only care about text frames.
          if (!(myItem instanceof TextFrame)) continue;
          //I think the only way this would happen would be if you had an image or
          //something else unexpected within the frame. I check for it so no content
          //is inadvertently lost.
          else if (myItem.texts.length > 1) continue;
          //If we're still in this iteration of the loop, all qualifications are met.
          //Flatten the text frame.
          //I don't use layers that often so, to me, flatten makes sense. You may want
          //to use a different term if there's a chance for confusion.
          flattenItem(myItem);
         }
       }
    }
    
    function flattenItem(funcItem)
    {
         //Hold onto the anchor character.
        var myParent = funcItem.parent;
         //Duplicate the text from within the frame so that it appears right after the anchor.
         //There may be other methods, but this works for me. I try to avoid copy/paste
         //so as not to deal with any clipboard mishaps. I added a check in case of empties.
         if (funcItem.texts.length > 0){funcItem.texts[0].duplicate(LocationOptions.AFTER, myParent.insertionPoints[0]);}
         //Replace the anchor character itself with a space (or whatever) which also
         //deletes the text frame it was anchoring.
        myParent.contents = " ";
    }
    

    I guess the takeaway is perhaps you aren't looking at the main text block and then check if anything it is anchored. You are watching each text block and find out if it is anchored. That's my approach, anyway.

  • How can I make the text box caption to display a text variable that is longer than the length?

    Hi all, I would like to do this: make a text caption to display a variable that contains a paragraph of text that the user has typed as soon as possible.

    I created the maximum length of the variable only 1000 and I am able to partially displayed variable in the text caption - only at the end of the first line of caption text.

    ICan someone tell me how to configure the text caption so that it can encapsulate texts? I can't find it in the properties panel.

    Thank you very much.

    No need to shout, even if I'm not native English, I understood your question very well, and this can be done with the enhanced TextArea widget as I mentioned. Here is a screenshot:

    Workflow:

    • Create a user variable, I scored it
    • Insert twice the widget with variable TextArea (Jim Leichliter, CaptivatePro), on the screen, these are the two rectangles on the bottom red and blue
    • Configure the first Widget to be associated with v_text and show this variable by inserting a default $$ v_text$ $
    • Configure the second Widget to display this variable by inserting returns a default $$ v_text$ $
    • You will need a button to refresh, so that the text appears in the second widget. Here I used the button, and then assigned to the action "Jump to slide" with the same number of slide so that the playback head rewound to the beginning of the slide
    • The text in the second widget shows; as you can see, it can be formatted as you wish.

    If you want to display the text in another slide, no need to make the action update, it automatically displays when you get to this slide.

    It is not a text caption that is displayed, but the widget. Is this a problem?

    Lilybiri

  • How do you get the text in the top line of the table to stop forcing text format the same way in the row below.

    I created a table with two rows. I would like the text in the top line is centered and the text in the line below that is aligned to the left. I have no problem when no list (chips) are involved. However, this week, the client has a list of items that have bullets.

    My problems are:

    1. the second row of my mimics table my top row despite not correctly displayed in design mode.

    2. when I try to clear my list of left fleas disappear.

    Please help if you can.

    Here is the link problem: 2015 Spelman women of color Conference

    Here are the previous explosion without the bullets/problem: 2015 Spelman women of color Conference

    Some days I think I understand the basics of HTML, but obviously not on this one. Whenever I try to search, then hard to pull the code to solve this problem, I fail miserably.

    Here is the code for the problem table:

    < b >

    < td width = "296" align = "left" valign = "top" bgcolor = "#F5F5F5" > < table >

    < td width = "269" align = "left" valign = "top" bgcolor = "#F5F5F5" > < table >

    < /tr >

    < b >

    < td colspan = "2" align = "left" valign = "top" bgcolor = "#F5F5F5" > < table width = "500" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >

    < b >

    < td align = "center" class = "alegreyasc" > Top 3 reasons to attend the < br / >

    Spelman College 11th Annual Leadership and Women of Color Conference: new principals in the era digital < table >

    < /tr >

    < b >

    < td align = "left" valign = "top" class = "alegreyasc1" > < ul >

    < li > < span class = "alegreyasans" > learn how to use the technology in many aspects of your life, including the design of career strategies, balancing work/life, community and promoting civic participation skills.

    • </span > < /li >

    < li > < span class = "alegreyasans" > learn more about the importance of diversity in the digital space and its impact on innovation. </span > < /li >

    < li > < span class = "alegreyasans" > identify and examine the skills required and directors of schools new platforms use to build and maintain the success. </span > < /li >

    < /ul > < table >

    < /tr >

    < / table > < table >

    < /tr >

    OK - let's try this-

    -Replace

    table of .mainbox table tr td table tr td tr td {}

    text-align: center;

    do-family: 'Alegreya SC', serif;

    }

    with this--

    table of .mainbox table tr td table tr td tr td {}

    do-family: 'Alegreya SC', serif;

    }

    and this-

    {.alegreyasans}

    do-family: ' ' Alegreya without, without serif.

    color: #666;

    do-size: 16px;

    text-align: left;

    list-style-position: inside;

    list-style-type: disc;

    }

    with this--

    {.alegreyasans}

    do-family: ' ' Alegreya without, without serif.

    color: #666;

    do-size: 16px;

    text-align: left;

    list-style-type: disc;

    }

    Works now?

  • How do you get the text to display as you want?

    I still have to understand how to get my text to look as it should. I look very much in development, but when I go to run the application, she goes crazy. How many of you go on the rendering of part of the text in Flex?


    Tom

    I noticed a difference in the first textArea that disappeared when I added condenseWhite = "true" for her. That's why the textArea ignore every additional line breaks and whitespace in yout htmlText.
    Which solves your problem? If this is not the case, let us know more precisely what is happening or maybe provide screenshots.

  • How can I get the text to resize, rather than the entire web page?

    I used to be able to re-size the text on a webpage by typing Ctrl + +. Today, the entire Web page is resized, and when I move to another page, it comes back. (I see this especially in Facebook.). Why this change, and then I go back to having just the text resize?

    Make sure that you are not Firefox running in permanent private browsing mode.

    • https://support.Mozilla.com/kb/private+browsing
    • You enter private browsing mode, if you select: Tools > Options > privacy > History: Firefox will be: "don't forget the story ever.
    • To view the history settings and cookies, choose: Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Uncheck the box: [] "Permanent private browsing Mode.

    You can use one of the following extensions to define a page zoom and the size of the default font on web pages:

  • How can I get the text of the announcement of an image in the folder my pictures

    As many of us we all have photos stored in the folder my pictures.

    What I want to do is add text to some of the pictures.

    I'm on iPad 2 and I want to see the pictures on TV,.

    I used Pisca and you can add text to photos when Pisca is open, but when I come back to my pictures folders and select the photo, there is no text.

    How can I fix this.

    Thank you... Ian

    If you added the text to the face of a Photo in Picasa and saved the
    file... (Save under a new name), you should be able to see the
    text when you view the file.

    How to add text to your Photos using Picasa from Google 3
    http://www.ehow.com/how_4599330_text-photos-using-Googles-Picasa.html

  • How do I get the text of a JEditorPane with the updated rtf data formatting?

    I want to store the contents of a JEditorPane with rtf data in the database so that I can recover again and show it on the JEditorPane exactly as it was created first. To do this, I need real rtf, not only the text data.

    If I use jEditorPane1.getText (), I get null.

    Finally, I found jEditorPane1.getStyledDocument .getText () (0, jEditorPane1.getStyledDocument () .getLength ()) which returns the text, without any formatting.

    I need the text with the rtf formatting codes to keep the formatting.

    Any ideas?

    Through the EditorKit.

Maybe you are looking for

  • Where can I find the price of the app, and why they are hidden?

    Why are they not those openly displayed apps prices? You need to click on 'Recover' to see the price? Seems a little shady. What is the price for Word Streak With Friends (paid version)? Thank you. (I'll fix my phone soon but wanted to learn about th

  • HP workstation xw4400 ET115AV image info

    Howdy.  I got the box mentioned above, and I was given to understand that it would take a quad core processor.  I can not, however, know what specific processor was supposed to go with this mobo.  So here I am.  If someone could tell me the fastest q

  • Error - sound card does not

    Original title - game sound recording I plugged my sd card and when I did the Spotify music system sound exploded with a message that the sound card did not work

  • UCCX 9 wall panel

    Hello world Was wondering if someone could recommend a solution of wall panel for UCCX 9 that show stats in real time on the screen of the wall panel? I know the Cisco information center but apparently it only supports historical reports for UCCX 9 a

  • I always install Premiere Pro 4

    I recently bought the cc Adobe Premiere Pro and installed on my laptop which is Windows 7 64 bit operating system. Now, I would like to install my second copy of Premiere Pro on my desktop. However, my office is 32-bit Windows vista. So I need to ins