No underlined font?

        Font f = Font.getDefault();
        Font newf = f.derive(Font.UNDERLINED);
        int fStyle = f.getStyle();
        int newfStyle = newf.getStyle();

        setFont(newf);

I try to get the underlined text.  I'd go LabelField and use the code above in the constructor.  For all the fonts on all simulators I've tried I fStyle == 0, newfStyle is 4 (underlined), but the display text has NEVER underscore.  What I'm doing wrong here?

I thought to draw underscore myself, but I do not know beforehand the number of lines of text, I have.  I don't want to have to write a line of packing algorithm just to add the underline.  :-(

Any help would be great.

Thank you

~ NN

This one works well:

LabelField _testLink = new LabelField("My underlined text",  Field.USE_ALL_WIDTH) ;

         Font licFont = _testLink.getFont().derive(Font.UNDERLINED);
         _testLink.setFont(licFont);

Tags: BlackBerry Developers

Similar Questions

  • Restore the colors of fonts, I am unable to change fonts colors.__Also, Yahoo mail has a line drawn through each word in the box that allows you to have options: font size, underline, font color, etc.

    Unable to restore the color of my font in all programs

    Hi ladybugpatsey,

    I suggest you try the following steps:

    Check and change the windows theme

    1. click the button Start and then click Control Panel.

    2. in Control Panel, click personalization, and then click theme.

    3. in the theme settings dialog box, select the theme that you want.

    For more information, see the link below

    Change the colors and fonts used for webpages

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-the-colors-and-fonts-used-for-webpages

    Troubleshooting font problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-font-problems

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

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

  • A way to find the names of the fonts described in the Illustrator file?

    I need to manipulate a logo that someone else created and underlined fonts before shipment to me. From what I've seen online there is not an easy way to understand what those policies are. I was wondering if this is really the case...

    Thank you!

    Emilie,

    Unfortunately, this is the case.

    In such a case, it is crucial to know who has the copyright. If it has, your editing, it may be a forgery, according to exactly, which is, or may be accepted.

    If there is no such question, you can ask him what fonts are used, or even get the original versions of direct Type as appropriate.

    Your use of these fonts require your own (bare) of them, of course.

  • How to make a EULA instructions on Install or premi¨¨re

    I think I understand the concept when starting, I run an application...

    i.e.

    public static void main(String[] args) {
    
            // create app
            final MyApp app = new MyApp();
    
            synchronized (Application.getEventLock()) {
                UiEngine ui = Ui.getUiEngine();
                final Dialog eula = new Dialog("a massive string", new Object[] {
                        "Accept", "Decline" }, new int[] { 1, 0 }, 1,
                        Bitmap.getPredefinedBitmap(Bitmap.QUESTION));
                eula.setDialogClosedListener(new DialogClosedListener() {
    
                    public void dialogClosed(Dialog dialog, int choice) {
    
                        System.exit(-1);
    
                    }
                });
                ui.pushGlobalScreen(eula, 1, UiEngine.GLOBAL_QUEUE);
            }
    
            // Event Handler
            app .enterEventDispatcher();
    
        }
    

    but using the dialog seems to create a great text...

    How can I get a well formatted dialog box?

    and is there an example that should contain the EULA?

    I guess I need a way to store the result

    I think you would be better to create your own pop-up dialog box, instead of using the built-in version.  For example, here is a screen of dialogue that I use to help files that could be easily adapted to your needs:

    public class EulaPopup extends PopupScreen {
        public EulaPopup(String version) {
            super(new VerticalFieldManager(VERTICAL_SCROLL | VERTICAL_SCROLLBAR));
    
            LabelField title = new LabelField("EULA Title");
            title.setFont(title.getFont().derive(Font.UNDERLINED | Font.BOLD));
            add(title);
    
            EditField eulaText = new EditField(READONLY | FOCUSABLE);
            eulaText.setText("EULA here");
            add(eulaText);
    
            ButtonField acceptButton = new ButtonField("Accept", ButtonField.CONSUME_CLICK | Field.FIELD_HCENTER);
            acceptButton.setChangeListener(new FieldChangeListener(){
                public void fieldChanged(Field field, int context) {
                    close();
                }
            });
            add(acceptButton);
        }
    }
    
  • How to avoid the blue color of a LabelField default selection?

    Hello

    Below, I have given my code please review and let me know where I did wrong. because my requirment must show the labelfield with a specific color. not work but useless default blue color is coming with the text. I want to avoid that the color blue.

    final String dimensionally = 'Test ';
    LabelField lbl = new LabelField (slable, 0, slable.length (), LabelField.FOCUSABLE |) LabelField.HIGHLIGHT_FOCUS) {}
                            
    Do police = Font.getDefault (.derive(Font.UNDERLINED |)) Font.PLAIN, 12);
    int x = font.getAdvance (slable);
    int y = font.getHeight ();
    Boolean hasFocus;
    protected void paint (Graphics g) {}
    g.setColor (Color.BLUE);
    g.setFont (do);
    {if (HasFocus)}
    g.setColor (Utility.ACTIS_MAAROON_COLOR);
    g.fillRoundRect (0, 0, x, y, 10, 10);
    g.setColor (Color.WHITE);
    g.drawText (dimensionally, 0, 0);
    } else {}
    g.setColor (Color.BLUE);
    g.drawText (dimensionally, 0, 0);
    }
    Invalidate();
    Super.Paint (g);
    }
                           
    protected boolean trackwheelClick (int arg0, int arg1) {}
    //

    }

    protected void onFocus (int arg0) {}
    hasFocus = true;
    super.onFocus (arg0);
    }

    protected void onUnfocus() {}
    hasFocus = false;
    super.onUnfocus ();
    }

    public void select (boolean arg0) throws IllegalStateException {}
    Super.Select (false);
    }
    /*
    Protected Sub layout (int width, int height) {}
    width = x;
    height = y;
    Super.Layout (width, height);
    super.setExtent (width, height);
    }
    */
                           
    };

    and one last thing is that when I method of positioning cover font size is bigger.

    Please answer...

    drawHighlightRegion is used to paint the selection, see also drawFocus.

  • Loss of links HTML and Word to PDF conversion

    Hi, when I convert a Web page or a word to PDF document, the links show as blue underlined fonts, but the URL is missing, and so the link is not active. I checked that "add links" is checked in my conversion settings. The same thing happens when I print to Adobe PDF, or when I select the menu "convert to PDF".

    I use Adobe Pro X and Word 2003. My OS is Windows XP.  Any advice would be appreciated.

    Thanks, Paul

    First of all, by using the Adobe PDF printer to create PDF won't get you links.

    Second, try to drag your HTML files directly in Acrobat to see what is happening.  If you aren't yet getting links then I would repair or reinstall Acrobat X

  • Javascript reference the column value

    Hi all

    I have a JavaScript function defined that I try to get a column value to, but get an error in Firebug.

    Here is my selection where I try passing the value.
    select
    '<div o nclick="showdetail(this,'||'#ROWNUM#,'||'#PRIMARY#)" 
    st yle="cursor:hand;cursor:pointer;text-decoration:underline;font-weight:bold;">Show</div>' Details,
    ...
    from
    ...
    (There is no space in the onclick and style, but it would not show correctly here)

    Error readings of Firebug, character not in line showdetail(this,10,#PRIMARY#)

    Any help is appreciated.

    Thank you

    -Chris

    Hello

    Is PRIMARY_NM number of value?
    If it is not then

    select
    '
    [+]
    ' Details, ... from ...

    Kind regards
    Jari

  • CSS and links

    By using the following code:
    a: hover
    {
    COLOR: #FFFFFF;
    BACKGROUND: BLUE;
    TEXT-DECORATION: UNDERLINE;
    FONT-SIZE: 8pt;
    }

    I want to control the appearance of the hovered over links. I have 2 types of links. Those that link to .html pages and those that point to .asp pages. The style above works as expected with the .html link but not with the link .asp. is there something I should add to it to make it work with the two links?

    Thank you

    Al

    This link order MUST be followed to work.

    a: link
    a: visited
    a: hover
    a: active

    The device memory to maintain the correct binding order is LiVHA. To learn more about
    Pseudo-classes and links styles, visit www.w3schools.com

    PT is mainly used in the press. Better to use pixels or ems on the web.

    -Nancy O.
    ALT-Web Design & Publishing
    www.Alt-Web.com

    'Gumbo Al' wrote in message
    News:fva44h$ICM$1@forums. Macromedia.com...
    > By using the following code:
    > a: hover
    > {
    > COLOR: #FFFFFF;
    > REMINDER: BLUE;
    > TEXT-DECORATION: UNDERLINE;
    > FONT-SIZE: 8pt;
    > }
    >
    > I want to control the appearance of the hovered over links. I have 2 types of
    links.
    > Those that link to .html pages and those that point to pages .asp. the
    above
    > style works as expected with the .html link but not with the link is .asp.
    > it something I should add to it to make it work with the two links?
    >
    > Thank you,
    >
    > Al
    >

  • I would like to print the links as plain text that is not underlined or in a different font and color.

    I have created a page with my resume, using Dreamweaver CS4 on my iMac (OS x 10.6.6)  You can see the page here: http://www.peterforkes.com/Resume.html


    It looks a lot when he is on the screen, but when I print I want links to not be underlined and also display in the same font (and color) of the surrounding text (a link is largely unnecessary on a piece of paper, is it it shows don't not the URL).

    So, I created a style sheet called 'print.css' and have this in it:

    a: link {}

    text-decoration: none;

    }

    In my html (Resume.html) document, I have this code at the top:

    < link href = "_css/Resume.css" rel = "stylesheet" type = "text/css" media = "screen" / > "

    < link href = "_css/Print.css" rel = "stylesheet" type = "text/css" media = "print" / > "

    Now, things such as the graphics in my document don't print (this is how I want) but links seems to do unexpected things for me.  As I said, when I print page I would that they:

    (a) print not with a underscore (which I expect the above code snippet to do).

    (b) I want to be the same as the text surrounding the link color (I have links to several places such as < h2 > < h3 > and < p >).

    (c) I want the link to have the same font and text size in the text that surrounds it.

    Any help is always appreciated.

    Peter A. Forkes

    You have solved a: link, but you can print the page with the tag in link or visited state if you require cover both.

    In http://www.peterforkes.com/_css/Print.css

    change

    a: link {}
    text-decoration: none;
    }

    TO

    a: link, a: visited {}

    Color: #333;
    text-decoration: none;
    }

  • In the past, but can not display the icons now for font size, underline, bullets, numbers, etc. when sending e-mail. Why?

    When I sent emails in the past, there were a couple of bars visible tools that showed the audacity, of size and font style. Could see also bullet point and icon number. I could indicate also, if I wanted to paragraphs to be unique, double space, etc. These are more visible. Anyone know why they suddenly disappeared?

    If you hold down the SHIFT key when you click on writing are there?

  • How can I underline, change fonts or print "BOLD" in a response on a web page?

    In response to a question on a web page, I want to use the bold or highlight important points. I don't find any help in the toolbars.

    I guess this is a web forum? It depends on the forum software if they allow just plain text or if they allow HTML styles. He is not in control of the browser.

  • Removing underlines and matching fonts in form

    I created my first form in Acrobat standard XI and I emphasize not not to print as well as the police to match the document. I searched in these forums, but may not yet understand how to get to the form field Editor, if that's what I need.

    Fields reached low enough to cover the lines, so how do you want that

    them to hide their printing?

    Saturday, June 13, 2015 23:39, Giandalia [email protected]>

  • Apple notes - need larger fonts

    Hi all

    I need a permanent larger font in bot Notes apple for iPhone and Mac?

    -Mac, I can underline text and CMD + but this is only temporary...

    -on the iPhone, I can display and brightness - but it's for the entire phone - so he'll do a text too large for other applications

    Q: How can I set the size of the text on Mac and iPhone to APPLE NOTES APP to the size I want?

    There is no option, but you can ask what apple, he added in a later version.

    To send comments directly to Apple, use this link: http://www.apple.com/feedback/

  • How to compose an e-mail message with larger fonts?

    I just sent a message starting with some information, but when I copied and pasted a line address, he stressed and when I spaced back to my default font, the message continues underlined and in much smaller font. How can I continue in my own default font and color?

    Re: but when I copied and pasted an address online, it was pointed

    by "address line", I presume that you are referring to the address of the Web page as shown in the address bar of the browser to let you know that you look at the page: for example:
    https://www.Mozilla.org/en-us/Thunderbird/all.html

    If you use "Insert" > 'Link' method then the link is added and stressed.
    Simple copy/paste or hand typed links placed directly in the editor are not highlighted in the editor, but they become auto stressed after sending or if you save it as a draft.
    If you save it as a project and then choose to edit the project, you would see the link pointed out in composition.

    However, if you did a simple copy paste, but copy a piece of text on a Web page that was a link pointed out, not copied from the address bar, then you will have copied some also good formatting.
    If I do that and then go back and then type, copied to the hidden format will be always used and are similar to a part of the link. Although if I press space the underline does not continue, but then it doesn't matter how exactly moves you make and the copied text may have included an empty space with a hidden formatting.
    If this sounds like your situation - copy text that says that it is a link try to go to the link and then copy and paste the info from the address bar and not the text link.

    You can see what is happening with the fomatting.
    Save as draft, then navigate to the project folder, select email and click on 'Other Actions' > View Source.

    I use version 31.2.0
    What version you use.

  • I can't locate the toolbar under the TOPIC when you enter an email, the one with the font size, color etc.

    Hello
    I was never able to locate the toolbar normally below the subject line when you type an email...
    It comes to the bar with the font size, color etc. At all the extras for letter writing, bold, underline, italics etc...
    Have always had it with previous systems, but never with Thunderbird... Sherlock


Maybe you are looking for

  • Re: Imagem om my Toshiba with problems

    Hello world When I start my laptop, the picture on the screen appears with problems, cannot read letters and some traces in the vertical. When windows start, displays a blue screen with a memory error but I can read because it disappears very quickly

  • Bladwijzers worden niet added on

    IK heb sinds kort versie Firefox/3.6.13 maar nu mijn nieuwe bladwijzers niet onder mijn & folders added on ook niet worden na close en opnieuw opstarten (colazione dat ook Nieuwbouw zou zijn like).IK heb niks geks Molfetta geen installatie rare enzo

  • in Keynote set the screen to full screen to send to iCloud

    I created 6 slideshows Keynote which I want to share with the family in iCloud.  I tested this point by sending an e-mail to myself but the slide show that's happened for me to see the sidebars all slides showing the Inspector on the right side also

  • storage base problem edit a field in the database

    Hi all In fact, I'm trying to insert the data into a database table using sql lite. the code below is I tried to recover the data from the field of basic editing and I'm not able to read the values. Is it the correct way to insert the data from the e

  • Hide the E20 home menu by default

    Hello Is it possible to hide the default home on an E20 menu? I can press the home button and the start menu is hidden again, but after each call, I need to do this. It now covers my personal happy wallpaper that is not a big problem, but it would be