How to make a LabelField align right when the text is long?

In order to make a good LabelField aligned, I create the LabelField with style "FIELD_RIGHT and add it to a value for money, it works when the text can be displayed on a single line." But when the text is long, over a single line, it works well.

For example, if the text is "ABDEL FARZAD", appears like this:

It looks like aligned left

How can I get it?

.

No guarantee, but instead of Field.RIGHT, try

FIELD. USE_ALL_WIDTH | DrawStyle.RIGHT

Tags: BlackBerry Developers

Similar Questions

  • How use align = 'right' for the text in a < dl > environment?

    I use a < dl > environment to control the vertical line spacing widely (in thousands of pages).  Here's the goal:

    Screen shot 2013-02-27 at 9.47.40 AM.png

    But I also need to have the generation numbers, for example "2.2.1" stalled right on a page width.  I tried different ways to achieve this by using < div >, < span >, etc.  Each has unintended consequences.  The foregoing is created using < table > in the < dt > line.  But each time the W3C validator objects.

    Here is my script:

    Screen shot 2013-02-27 at 9.50.16 AM.png

    Or, if that is easier to read:

    < class dt = "type_U_XXX" > < table width = "720" border = "0" cellpadding = "0" >

    < b >

    < td width = "680" > Johann Peter Bayer (* 23.10.1716 Undenheim) < table >

    < td width = "40" align = "right" > 2.2.4 < table >

    < /tr >

    < / table > < /dt >

    < dd class = "col_0" > Taufpate war Johann Peter Cohn, Gau-Odernheim. < foreigners >

    < dd class = "col_0" > von war of Johann Peter Bayer 1751-1788 St.Albans - Hofmann, to Undenheim.  ER ist als 'see und emsiger Mann' und "der Hof-Peter" als uberliefert.  Am 04.02.1744 his er in Undenheim < i > Anna Catharina Dapper aus Sörgenloch < /i >.  Trauzeugen waren Joh. Matthaeus Bayer und Joh. Peter Dapper. < br / > < br / > < / DD >

    < class dt = "col_1" > Kinder: (13) < /dt >

    < class dt = "type_U_XXXsX" > < table width = "680" border = "0" cellpadding = "0" >

    < b >

    < td width = "640" > Johann Bayer Mathäus (* 03.04.1745, + 02.10.1746) < table >

    < td width = "40" align = "right" > 2.2.4 / 1 < table >

    < /tr >

    < / table > < /dt >

    < dd class = "col_1" > Taufpate war Joh. Matthaeus Lahr. < br / > < br / > < / DD >

    How do I right align numbers in a < dl > environment?  It must be in the line < dt >, not SD <>.  Using the < dd > line back from the left margin, which is not acceptable.

    Thanks for your help.  Be very explicit.  Please show me the line or two of script that is needed, not just say for example, to use a < div > tag.

    Create a CSS class selector called "numbers".

    Assign the right float attribute

    In the body of your page, select and apply this class by wrapping your numbers between span tags.

    Paste this code into a separate HTML document to see the concept

    Paragraph2.2.1

    Paragraph2.2.2

    Paragraph2.2.3

    Paragraph2.2.4

  • How to make a video play automatically when the user gets to a certain point/pixel?

    I am creating a Web site with an embedded video using the YouTube widget. I want the video to start playing when the upper part of the widget reached the top of the screen, in this case to 400 pixels. Can anyone help? Thank you in advance!

    You will need to use a suitable script that triggers the YouTube Player.

    Mylenium

  • How to make a 'active' phone number in the text box?

    I'm testing in 10.1 and 10.2, using the following QML simulators.  What I'm trying to understand is that 'rules' the text box used to set the active text, including phone numbers.  All I'm trying to do is to put a phone number in the text box that my users the opportunity to click on it to the phone.  But I can't make it work, or more exactly, may not get the phone number to become active.  .

    As you can see that I tried a variety of number formats, some specific UK because I was afraid that he may use country specific recognition, but nothing I try works.

    On the other hand the address which I also put in the TextArea is 'hot' and started the map.

    FYI, the client is running in Canada on Q10s using 10.1.  The numbers are also completely fictitious, if they work, then that is a stroke of luck.

                    TextArea {
                        inputMode: TextAreaInputMode.Text
                        editable: false
                        content.flags: TextContentFlag.ActiveText
                        text: "#123 1234, #123-1234  ph: 780-784-1231. ph: (403)218-1248. ph: 403-242-1231. ph: (01637)123456. 81 Street NE, # 101 ,, Calgary. "
                    }
    

    I saw this:

    http://supportforums.BlackBerry.com/T5/native-development/textarea-showing-quot-phone-numbers-quot/m...

    I was expecting that I didn't set the attributes for the text using C box.

    And I don't have permissions phone - eslewhere in the application that I detect when the user is on the phone.

    Any ideas on how I could get a phone number in a TextArea to be active, would be appreciated.

    Well, for what it's worth here's what I get with your data :

  • How to make a slideshow of heroes with the text and the button for each slide?

    I'm trying to make a basic slide show (auto no buttons) which will be the width of page 100% and I want each picture to have a title and a status button they can click to access other pages, for the life of me I can't this is! What I am doing wrong?

    Indeed I could solve my problem, yay 2 + hours of troubleshooting finally paid off!

    I tried the white color text and read 'Check this video now!', but the background was a color of the light, so it is in contradiction with the white text. To remedy this problem, I created a rectangle shape, he made black and reduced the opacity to 40% and threw it behind the text. In order to get the button under the text that says: 'Click here'! I was able to use a copy + paste glitch by sticking the trio in the caption text box for an image, thus allowing me to have a unique caption for each photo in an automatic slideshow. The problem arises due to the notion of a chart of the icon to stay on the text no matter how it is pasted into the text box but I could understand that if you group the text above the rectangle elements before pasting in the text area of the legend, then the text will remain on the chart! Yay problem solved (at least for now)!

  • How to make a clip visible only when the mouseY theatrical est.25?

    I really need the code to make a movieclip that is visible only if the mouse is near the back of the stage.  Here is the code that I tried to use, but it does not work well, thank you:

    thumb_container. Visible = false;

    stage.addEventListener (MouseEvent.MOUSE_MOVE, show);

    visible (e:MouseEvent) {}

    if(e.localY<stage.stageHeight/4) {}

    thumb_container. Visible = true;

    thumb_container. RemoveEventListener (MouseEvent.MOUSE_MOVE, show);

    thumb_container.addEventListener (MouseEvent.MOUSE_MOVE, hide);

    }

    }

    stage.addEventListener (MouseEvent.MOUSE_MOVE, hide);

    function hide {(e:MouseEvent)}

    if(e.localY>stage.stageHeight/4) {}

    thumb_container. Visible = false;

    thumb_container. RemoveEventListener (MouseEvent.MOUSE_MOVE, Hide);

    thumb_container.addEventListener (MouseEvent.MOUSE_MOVE, show);

    }

    }

    Try:

    stage.addEventListener (MouseEvent.MOUSE_MOVE, showhide);

    function showhide(e:MouseEvent) {}

    {if(e.localY>3*stage.stageHeight/4})

    thumb_container. Visible = true;

    } else {}

    thumb_container. Visible = false;

    }

    }

  • How to make an object to rotate when it moves up and down or left and right of the key to the other?

    How to make an object to rotate when it moves up and down or left and right of the key to the other?

    Just animate the rotation property, you animate the position property of the same way.  Very easy.

  • How to align the text to the right in the text filed using Adobe Acrobat Pro?

    How to align the text to the right in the text filed using Adobe Acrobat Pro? I am able to align the text box, but not the alignment of the text with the deposited text.

    In the Options tab of the field properties dialog box, you can choose left, Center, or right alignment.

  • How to align the chips of the lists to the right of the text?

    Hello world

    I've updated to the new InDesign CC 2015 and I can't adjust my lists bulleted to the right of the text. I have attached two screenshots: one is in my list and the other paragraph style definition.

    Captura de Tela 2015-09-01 às 17.13.31.png

    Captura de Tela 2015-09-01 às 17.14.08.png

    Thank you in advance,

    John

    Here's how you can get the ball on the right side of the text.

    1. Create a text frame.
    2. With your cursor in the image, hold down the cmd/ctrl key and choose the command text > fill with placeholder text.
    3. In the dialog box, choose a right to left language like Hebrew. This will fill your frame with the unwanted text.
    4. Delete the text and type in the copy that you want to appear
    5. Apply the list format bulleted text.

  • How to configure an application automatically starts when the unit is turned on

    I used the instructions in:

    How to-configure an application automatically starts when the unit is turned on

    Article number: DB-00002

    1. - in the BlackBerry JDE, right click on the project and select Properties.
    2. - in the Application tab, check the function of automatic execution on startup checkbox.
    3. - If you want your application to run in the background and not appear on the Ribbon, select the Module system.

    My application starts automatically in debugging, but not in my BB8100 pearl.

    Any ideas? THX...

    If you are looking for in the unit LOG immediately after startup, you should find out the reason.  I suggest to you that what follows is the most likely reasons:

    (a) application not signed

    (b) developed for a different level than the device OS.

  • How to make windows require a password during the installation of new programs?

    How to make windows require a password during the installation of new programs?

    Hello

    You will not be able to circumvent the password that appears before the execution of actions (installing a new program) in a non administrator account.  If you are logged on as administrator, and again, you get the command prompt, you can disable UAC (User Account Control) to stop the password dialog window.

    However, as a work around you can right-click on the installation of the program files and select run as administrator. Check if this is useful.

    Let me know if I can help you with this question or any problem related to Windows.

  • How can I create a scroll effect when the manuscripts of user to the bottom of the image will be blurred?

    How can I create a scroll effect when the manuscripts of user to the bottom of the image will be blurred?

    Hello

    You can create a scrolling movement where the image fade out the scroll, you must use the tab opacity under the effects of scroll Panel.

    If you need especially be blur on the image, then you must change this image in any editing program like blurry image to make a copy of this image, then place the two images (real and blurry) on this page and use the scrolling motion or fade option to replace the images.

  • How can I make rectangular bubbles that adapt to the text inside them without the "arrow" that points to where the bubble comes to have changed?

    I do a lot of bubbles (150 +) who all text inside of them, which are distinguished by length. I want the balloons to look the same in terms of style, but I need different sizes of course for each of these texts. This means that the rectangular part of the speech bubble must adapt to the length and the width of the text on the inside, while the "arrow" to where the bubble is coming (e.g., the person who speaks) should stay the same on each bubble. So is there a way or a workaround to these bubbles "adaptation"?

    I appreciate any kind of help

    Thanks in advance!

    You can do this by using the option of automatic resizing the text block and a separate object (or 2) to the pointer / arrow.

    Create a text block that auto sizes away from the direction of the needle. Make sure that the line on the block of text is aligned to the outside. Draw a pointer with the pen tool and give it the same stroke and fill as the text block.

    Then you must carefully align endpoints of the pointer on the edge of the text block or if you want perfect-looking for joins, have endpoints of the pointer the text block overlap and cover them with another frame, filled with the same color of filling the text block.

    You may need to experiment with the position and the size of this frame obscuring so it becomes visible when the text block is resized. Here is an excerpt, you might be able to use as a starting point. Dropbox - resizing_speechbubble.idms

  • My screen suddenly upside down. How can I get that back right to the top?

    My screen suddenly upside down.  How can I get that back right to the top?

    High graphics most of range, the cards are equipped with display rotation built in and adjustable via display properties or via the display properties of the display icon in the Notification area (to the left of the system clock).  It is a nice feature if you want to read things more like a book on your laptop, etc.

    Some examples would be ATI, NVIDIA, Intel, Matrox, S3, XGI...  These adapters can be integrated into your system, and not always his own card.

    This phenomenon of rotation screen sometimes inadvertently some keystrokes (the cat walked on my keyboard).

    Pressing on the keys Ctrl-Alt top/arrow down arrow rotates screen 90 degrees at a time for some graphics (like NVIDIA) cards

    If this does not work, we will need to know your system brand and model and see if we can look at the rotating screen for you shortcut keys.

    Do, or do not. There is no test.

    I decided to implement the points for a new puppy instead of a pony!

  • How to cancel my membership creative cloud when the option "manage the plan" does not appear as an option on my screen?

    How to cancel my membership creative cloud when the option "manage the plan" does not appear as an option on my screen?

    Cancel your subscription or membership. Creative cloud

Maybe you are looking for