specify a text fontsize

{Label
text: 'Login '.
                                
                               
textStyle {}
Base: SystemDefaults.TextStyles.TitleText
textAlign: TextAlign.Center
color: Color.Black
                                    
}
}

How can I make a text smaller or more... to specify the font size?

I tried everything I gave value and fontsizevalue... He gave the same result

He advised to not not to use a fontsize specific unless absolutely necessary, instead use one of the styles defined system.

Take a look here to understand more about the control of style and font size...

http://developer.BlackBerry.com/native/documentation/Cascades/UI/text/styles.html

Tags: BlackBerry Developers

Similar Questions

  • How to specify the 'static' or 'dynamic' text in Flash CS5?

    Hmmm. things have moved in the CS5 version! How to specify the text 'static' or 'dynamic '? Can't find the selection in the Properties palette.

    Thank you-

    Should be right at the top of the properties panel. First, make sure you select your text box. In addition, change TLF text in classic text.

  • Debug: how to search a text string (s)?

    In the debug command, how to search for a text string?

    I tried both a mystring' and 'mystring' ' does not.  They return all two syntax errors ("^ error").

    "According to aid debugging (" "?" command "), the syntax is the list of the range".  Note that no argument is indicated as optional.

    If I enter a range, what is the syntax in general?  And what is the syntax for 'all '?

    I tried * 'mystring' ' does not.  I get the syntax error (' ^ error ") pointing on «*»

    And what is the syntax for the 'list', in particular to specify a text string?

    I wrote:

    In the debug command, how to search for a text string?

    Well, duh!  A Google search for "debug windows" (without the quotes) found this handy employment guide:
    http://thestarman.pcministry.com/ASM/debug/debug.htm.

  • Police base / positioning of the text of point vs box

    For some stupid reason too long to address here, I place some point text in the same place, as it would be placed if it was in text box.

    However, it appears in the text box is positioned compared to the 'first line' of the police, while the sharp text is positioned (anchored) from the baseline of the text, see the next with the same position sample model:

    0ajyv52.png

    What I've done here is just first create "mypoint" by clicking on (0,0) and paste the text ' "(which contains characters that show the level of reference and full height also), and create the text box"mybox"set by draw a text box to (0,0) to (1 000 100) and paste the same text and by changing the colors to make them recognizable.

    I then just added a rule to y = 100, added an adjustment layer and it value parent of these two layers, then shift the position of the adjustment layer - 100 so I can see what is happening.

    Now the question is, how to calculate what "mypoint" position would be to align on the same alignment of Y-position that the text "mybox" is?

    Just for the inspection of a few things:

    ylI9uVr.png

    Looking at the returned rectangles sourceRectAtTime() I get something in the general direction of the following, but he is not quite right:

    1CDsCSW.png

    model var = app.project.activeItem;

    var b = comp.layer ("mybox");

    var p = comp.layer ("mypoint");

    BR var = p.sourceRectAtTime (0, false);

    PR var = b.sourceRectAtTime (0, false);

    var text = p.sourceText.value; copy settings

    var t2 = comp.layers.addText (text);

    text = t2.sourceText.value;

    text.applyColor = true;

    text.fillColor = [0,1,1]; cyan to differentiate

    T2.sourceText.SetValue (Text);

    T2. Name = "myotherpoint";

    T2.parent = comp.layer("adjust-y");

    T2.position.SetValue ([0, 0]); gives the same position as "mypoint".

    T2.position.SetValue ([0, br.top - pr.top]) / / slightly off

    T2.position.SetValue ([0, text.fontSize]) / / No, too low

    Is it a reasonable way of calculation and this... ?

    I tried to add a point text and to match a text box, with a code similar to yours, and it works.

    However I have no parent the text point to layer "settle there" (because you said nothing on the subject), but directly in the text of the box.

    Start-ups can come from your transformation parameters to "settle there" layer. Maybe reset?

    I used this code:

    var comp = app.project.activeItem;
    var b = comp.layer("mybox");
    var br = b.sourceRectAtTime(0, false);
    
    var p = comp.layers.addText(b.text.sourceText.value.text);
    p.name = "mypoint";
    // make same doc specs (skipped)
    var pr = p.sourceRectAtTime(0, false);
    
    // parent, then set relative position
    p.parent = b;
    p.transform.position.setValue([br.left-pr.left, br.top-pr.top, 0]);
    

    Xavier

    Edit: just realized that 'set the y' is on your screen, and it is the parent of all the layers...

    I don't have a lot of time to understand why your code does not work, but if you parent the point of the box instead of the box parent, then it should work.

  • Breakpoint text format

    The ability to specify a text of different size of breakpoint, the breakpoint is not working for my design.  Someone else has this problem and are there recommendations on why I could have this problem?   I'm trying to put a specific break in a sentence for mobile display, and even though I have the text for this selected only breakpoint, the change appears through the different sizes... it's DRIVING ME CRAZY .

    Thank you.

    Just to clarify how you can switch between sensitive and put text in shape through breakpoints:

    on the left vertical toolbar (where you have the tool selection, rectangle tool, crop tool, etc.), the last tool is a switch/toggle between using text in a reactive mode or through breakpoints.

    Just be sure to select your text box and use this tool to move to your need.

  • How to specify a relationship front of 'Global' entity to the first child

    How people are specifying the relationship forward and inverse the relationship of 'Global' to its child entity?

    Assumptions:
    (1) this is a mandatory relationship to 10.3?
    (2) we cannot rename "Global"?

    So, if my first child entity is 'the race' so what is the relationship? Is - this "race of the Global" and "Global race"? This text makes no sense. People are doing to make this text of relationship have a logical sentence?

    Thank you
    Paul Fowler

    Specify the text only forward 'the races '.

    It is never necessary to refer to the "global" in the text of any entity, nor a reason to specify the text of a link that refers to the overall entity. For example, "races" could refer to the set of entities of race or simply 'the race' refers to each instance of the entity of the race. Simply refer to the entities 'parent' and 'child' (source or target) when the text is necessary to specify the context of a specific relationship. (for example his children (which means that the children of a person in particular) against children (which means that all children from a global perspective))

  • Current state on the text of the hyperlinks does not work

    My menu is composed of hyperlinks in text, and each hyperlink is set to be a highlight color when the page that links is active to help the orientation of the site.  From the outset, the State did not.  I tried everything I can think of.  Initially, I had a problem with the States of both rolling and I "fixed it" tinkering with the hyperlink settings, but it did not help with the active state.

    I tried creating a new site recently to see if Beta 6 had corrected the problem without success.  At this point, the site is more than 100 pages, with somewhere around 16 template and is very difficult to navigate with an active State non-functional.  I would be grateful if someone had a solution or workaround for what does not replace all of my menus handmade with widgets in the menu (the look we're going for is very simple and is easier to achieve with a menu widget text hyperlinks).  It would be also impossible to eliminate the master pages and have a unique menu for each page, because it becomes extremely difficult and time consuming to modify and make additions as the site grows.

    Browsers show the 'active' hyperlink text State when you click on a link (that is, when the mouse button is pressed). It looks like you want something different - you want the menu item that has a hyperlink to the current page to draw in a different State. You can accomplish this in Muse by using the States palette. You can set the hyperlink on the text block, and then specify a text color different for the different States of the text block. Muse will make your block of text in the 'active' State if she has a hypertext link to the current page. It's a bit confusing that there is an 'active' for the text of the hyperlinks and an active State for the page elements...

  • Variables and text input events

    Hello

    I am not new to Flash or AS3 but I never really did anything too complex. I made a Flash game and get to know the Variables for the first time. Online tutorials confuse me because they are mostly oriented AS2 and I bought this book (which is awesome) Game Design with Flash, but it only covers variables involving numbers and a guessing game.

    All I want right now is a field to enter your name and below, whatever the user has entered, will be displayed in a dynamic text field that will go, ' Oh, if your name is (whatever)? I understand that the information that the user types into the input text field must be entered in some way, so I have to make a function to make it work with a button? For now, I can type in the entry, but nothing appears in the dynamic text field.

    I borrowed an AS3 example elsewhere on this forum and add my own Instance names. I also wanted to know, how can I call the name of the user during the game? Follow this same variable upward?

    Here's what I have:

    Stop();

    var myName:String;

    myName = userName.text;

    confirm_txt. Text = "so your name is ' + MyName;

    I get no errors, but the dynamic text box does not appear as I type... How can I go on "seizure" the name while it appears and I can call anytime during the game?

    Thank you in advance for any help offered!

    "inputField.type = TextFieldType.INPUT; > Assignment Variable function name? »

    No, this says that this text field can accept keyboard entries.

    "function onInput(e:TextEvent):void".
    {
    outputField.text = "You entered" + inputField.text;
    } > You made the feature so that it works on the input box? Not the output? But the text comes out on the output? »

    This function is called when the TextEvent ENTRY is distributed by inputText TextField.

    addChild is a method that adds objects to display the object and makes them visible.

    If you replace the variables created dynamically by TextField you place on the scene manually - things will work the same. Just give them the same names as in the code and specify the text field where the user types is an input field.

    Feels like you will benefit greatly from reading about the basics of AS3 and Flash.

  • Text field formatting, I'm doing it wrong?

    I'm moving in AS 3.0, finally, and I run into trouble with formatting of a text field created in As it load the text very well, but it doesn't format correctly. What Miss me? Just a tip, the text field is created on a black background, which is why the white text and border. Help!

    I want to say that you're doing anything wrong, because it seems that it should do what you want, but then I'd be wrong. To use the setTextFormat, apply it after that the text has been entered into the textfield. Instead, you can leave the line of code where it is, but replace it with the defaultTextFormat assignment (property):

    txtWhat.defaultTextFormat = txtBody;

    If you check the help file, from what I can decipher, it indicates the setTextFormat method to apply the format to the specified (default text to all what is there), so if there is no text when it is applied, it affects all nothing to the format.

  • fontSize property?

    How can I change the font size of a label, in the Scripting section.

    LabelID.fontSize = '2 ';
    LabelID.text.fontSize...

    no work

    Ugh, you use setStyle,
    I'll blog it here http://www.ilovenicii.com

  • transfer of photos to thumbdrive

    Is there an easy way to copy an album in Iphoto to a USB key? I don't have room for the library, iPhoto together (right now) and I want to just back up an album at the moment.

    Hi sofromlex,

    If your USB is formatted for Mac OS X extended (journaled) and is large enough to hold your photos, you can export photos in your album for her.  I suggest you create a folder on the USB drive first using the same name as your album.  In iPhoto, select the album, select all the photos in the album, and then choose file > export Photos of [number].

    The resources below will help you this:

    Format disks as Mac OS extended

    You can check the format of a hard drive by selecting it in the Finder and information then by choosing in the menu file . The format is displayed in the Format section under general information.

    Formatting a drive to Mac OS extended (journaled) format

    Important: If you have files you want to save, don't forget to back up another drive before wiping the drive, they are on. Reformat a disk will permanently erase all data on it.

    1. From the Finder, click the Go menu and choose utility.
    2. Open disk utility.
    3. Select the disk or partition, and click clear.
    4. Choose a format from the Format pop-up menu. Choose Mac OS extended (journaled).
    5. Type a name for the disc.
    6. If you want to prevent that files deleted being restored, click Security Options, select the option you want and click OK.
    7. Click clear.

    Last modified: March 12, 2015

    iPhoto: photos, videos and slideshows of export

    Export photos in a selected format

    You can export photos so that you can import and work with them in other applications. You can choose the size and the format for the exported photos.

    1. Select the item that you want to export.

    2. Choose file > export > export Photos of [number].

    3. Click the drop-down type of Photo and choose the type of file for the exported photos.

      • JPEG creates files of small size suitable for use with websites and other applications of the photo.

      • TIFF is a lossless file format that works well for transferring photos between computers and applications.

      • PNG is another popular lossless file format for web images.

    4. Click on the drop down file name and choose how to name the exported files (this step is optional).

      You can name your exported files by using the titles you gave their pictures, their file name or or a sequentially numbered filename. If you choose sequentially, you can specify the text that should appear before each number (for example, Anniversaire01, Anniversaire02 and so on).

    5. Click on the subfolder size pop-up menu and choose the way to split the files exported into folders.

      For example, if you export pictures of several different times, you can have export of Photos every moment as a subfolder named after the moment. Choose None to export photos to individual files without subfolders.

    6. Click Export.

    7. Choose where to save the exported photo files, then click on export pictures.

    Take care

  • How to set the color black as default color

    I installed a new monitor (acer). Printing color is blue as defalt. I want to change the default color black. How can I do?

    What is "print color" has to do with your monitor?  Printing color is determined by your printer.

    If you really want to tell the color of the text that is displayed on your screen, you will need to specify what text in which application.

  • Rename the download interactive report action

    I'm 5 APEX site apex.oracle.com

    ....

    I need to rename

    action > > download to export files > > file types

    in the interactive report

    as we in the image below

    Hello

    Those who are transltable of the APEXIR_ACTIONS and APEXIR_DOWNLOAD messages

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39147/global_messages.htm#BABEGGHA

    Add those to your SMS application and specify the text that you need

    Kind regards
    Jari

  • Find the next cone

    Dear friends,

    Although it is quite simple to find the next cone with oDoc.NextMarkerInDoc the sequence of found markers is not what the user sees in the document: you get the markers in the sequence that they were inserted into the document (which can be pretty random). To get the same sequence as using the Find dialog, I need...

    But again my knowledge is in low - see lines 91 or 92:

    #target framemaker  
    /*  Navigate markers and get them
    Document in charge is E:\_DDDprojects\FM-calc\FM-testfiles\NavigateMarkers.fm 
    Which contains both #calc and Author markers
    
    It turns out that the sequence of marker.NextMarkerInDoc is that of creating the markers.
    For the first and last marker the simple method is OK (since absolute postions).
    For next and previous the find method must be used.
    */
    var oDoc = app.ActiveDoc, oCurrentMarker;
    if (!oDoc.ObjectValid ()) {
      alert ("There is no active document.");
    } else {
    oCurrentMarker =  GetMarker (oDoc, "#calc", "first");                 // OK
      Alert ("marker found = " + oCurrentMarker.MarkerText);
    oCurrentMarker =  GetMarker (oDoc, "#calc", "next", oCurrentMarker);  // undefined
      Alert ("marker found = " + oCurrentMarker.MarkerText);
    } 
      
    function GetMarker (oDoc, sMarkerName, sAdverb, oCurrentMarker) { // =============================
    // sAdverb may be first, last, previous, next
    // returns undefined if sMarkerName not defined in oDoc 
    // argument oCurrentMarker unused for "first"   
    // unfortunately there are no such methods as LastMarkerInDoc or PreviousMarkerInDoc
      var marker, nextMarker, exit, currenMarker; 
        markerType = oDoc.GetNamedMarkerType (sMarkerName); // Get the specified marker type.    
        if (!markerType.ObjectValid ()) { return undefined;} 
      
      switch (sAdverb) {
        case "first":  
          oCurrentMarker = GetFirstMarker (oDoc, sMarkerName);
          break;
        case "previous":  
          oCurrentMarker = FindNextPrevMarker (oDoc, sMarkerName, "previous", oCurrentMarker);
          break;
        case "next":  
          oCurrentMarker = FindNextPrevMarker (oDoc, sMarkerName, "next", oCurrentMarker);
          break;
        case "last":  
          oCurrentMarker = GetLastMarker (oDoc, sMarkerName);
          break;
        default:
          Alert ("Error in routine NavigateMarker\nUndefined sAdverb = " + sAdverb);
          break;
      }
      return oCurrentMarker;
    } 
    
    function GetFirstMarker (oDoc, sMarkerName) { // get first marker of type sMarkerName =============
    // function returns the current marker, null if it does not exist
    // parameter oCurrentMarker is not used
      var marker = null, nextMarker, oCurrentMarker; 
      marker = oDoc.FirstMarkerInDoc;  
      while (marker.ObjectValid ()) {  
        nextMarker = marker.NextMarkerInDoc;  
        if (marker.MarkerTypeId.Name === sMarkerName) { 
          return marker;
        }
        marker = nextMarker;  
      }
    } 
    
    function GetLastMarker (oDoc, sMarkerName) { // get last marker of type sMarkerName ===============
    // function returns the last marker of type sMarkerName, null if it does not exist
    // parameter oCurrentMarker is not used
      var marker, nextMarker, lastMarker; 
      marker = oDoc.FirstMarkerInDoc;
      marker = marker.NextMarkerInDoc;  
      while (marker.ObjectValid ()) {  
        if (marker.MarkerTypeId.Name === sMarkerName) { 
          lastMarker = marker;
        }
        marker = marker.NextMarkerInDoc;  
      }
      return lastMarker;
    } 
    
    function FindNextPrevMarker (oDoc, sMarkerName, sAdverb, oCurrentMarker) { // get next/previous ===
    // function returns the current marker, null if it does not exist
    // Base: Russ Ward in https://forums.adobe.com/message/3888653#3888653
      var marker;
      var tr = new TextRange();
      var findParams = new PropVals();
      
      tr.beg.obj = tr.end.obj = oCurrentMarker;       // Starting tr is the current marker
      tr.beg.offset = tr.end.offset = 0;              // 
                                                      // Wrapping not wanted.
      findParams = GetFindParamsMarker (sMarkerName, sAdverb); // Find parameters for marker
    
      InitFA_errno ();                                // reset - it is write protected
    //marker = oDoc.Find(tr.beg, findParams);         // => undefined
      marker = oDoc.Find(oCurrentMarker, findParams); // => undefined
        
      if (FA_errno !== Constants.FE_Success) {
        return undefined;                             // no next/previvious marker present
      }
      return marker;                                  // we have found a next/prev marker
    } 
    
    function GetFindParamsMarker (sMarkerName, direction) { //=========================================
    // Get/set the find parameters: find marker of type sMarkerName, consider direction, no wrapping around
    // Returns find parameters in the function
    
      var findParams;
      if (direction = "next") {
        findParams = AllocatePropVals (1);  
        findParams[0].propIdent.num = Constants.FS_FindMarkerOfType;  
        findParams[0].propVal.valType = Constants.FT_String;  
        findParams[0].propVal.sval = sMarkerName;  
      } else {                                        // previous
        findParams = AllocatePropVals (2);  
        findParams[0].propIdent.num = Constants.FS_FindMarkerOfType;  
        findParams[0].propVal.valType = Constants.FT_String;  
        findParams[0].propVal.sval = sMarkerName;  
        findParams[1].propIdent.num = Constants.FS_FindCustomizationFlags;
        findParams[1].propVal.valType = Constants.FT_Integer;
        findParams[1].propVal.ival = Constants.FF_FIND_BACKWARDS;
      }
      return findParams;  
    } // --- end GetFindParams
    
    function InitFA_errno() { //========================================================================
    // Reset FA_errno as it is write protected. See https://forums.adobe.com/thread/962910
      app.GetNamedMenu("!MakerMainMenu");             //If this fails, you've got bigger problems
      return;
    }
    

    How to specify the text range (probably necessary)?

    Thank you

    Klaus stew

    I'm back ;-))

    Just try this one.

     var oDoc = app.ActiveDoc
     var oCurrentMarker;
     var docStart = oDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
     var MarkerList = [];
     var tloc = new TextLoc (docStart, 0);
     var locTextRange = new TextRange (tloc, tloc);
    
     oDoc.TextSelection = locTextRange;
    
      if (!oDoc.ObjectValid ()) {
          alert ("There is no active document.");
            }
        else
            {  // gather all markers-locations(objects) and store them in an array (MarkerList)
             var FindParams = GetFindParams()
    
            var foundTextRange = oDoc.Find(tloc, FindParams);
    
            while (foundTextRange.beg.obj.ObjectValid())
                {
                    MarkerList.push(foundTextRange);
                    tloc = foundTextRange.end;
                    foundTextRange = oDoc.Find(tloc, FindParams);
                }
    
     var FoundMarker = [];
    
        for (var i = 0; i < MarkerList.length; i++)
            {
            var MarkerTI = oDoc.GetTextForRange (MarkerList[i], Constants.FTI_MarkerAnchor);
    
            oDoc.TextSelection = MarkerList[i];
            oDoc.ScrollToText (MarkerList[i]);
            alert("MARKER");
    
              for (var x = 0; x < MarkerTI.length; x++)
               {
                var oTextItem = MarkerTI[x];
                FoundMarker.push(oTextItem.obj)//store the marker objects
                }
            }
        }  
    
    function GetFindParams()
    {
        var FindParams = new PropVals() ;
    
        var propVal = new PropVal() ;
        propVal.propIdent.num = Constants.FS_FindWrap ;
        propVal.propVal.valType = Constants.FT_Integer;
        propVal.propVal.ival = 0 ;// don't start at the beginning
        FindParams.push(propVal);
    
        propVal = new PropVal() ;
        propVal.propIdent.num = Constants.FS_FindObject;
        propVal.propVal.valType = Constants.FT_Integer;
        propVal.propVal.ival = Constants.FV_FindAnyMarker ;
        FindParams.push(propVal);
    
        return FindParams
    }
    
  • Fontproblems in statebutton on masterpages

    Why the fonts in statebutton on masterpages displayed not correctly when downloaded to the catalyst for business? When I create a statebutton on a template, and specify the text in a specific font and Center the text in the footer. Then download on BusinessCatalyst, the button remains, but all style disappears in the text.

    See the button in the footer, is it a bug? See Syntens

    Have you tried to turn off "BIE" in the "Advanced" Panel of the "file > Site Properties ' Muse and re - publish. Just read in other posts that could result problems of fonts by the IBE being on. It is supposed to be an update soon to fix this bug.

Maybe you are looking for

  • No backlight on the screen of the Satellite A200 - 14 d

    Hello! Since yesterday I have a problem with my Toshiba Satellite A200 - 14 d. I left my laptop in full of energy and on the current for a while (about 30-40 min). When I got home, it was in standby mode (I'm with XP, btw). I pressed a key on the key

  • DeskJet 3055 has J611n and I touch

    I bought an HP Deskjet 3055a J611n printer to my i pad. A logo in airprint is indicated on the box of the printer. But I can do this job and I doubtbif it is indeed an Air printer? Can someone help me?

  • I have two JPG images on each side of a piece that I want to combine on a JPG image

    I have two JPGs of each side of a piece I want to combine on a JPG image... is snyone knows how to do this?

  • When I try to go in 'new' email he says send error report.

    I tried to follow the suggestions, 1) download updates... done. (2) seek thugs Add ons... .done 3) downloaded and executed M/S scan security... no virus. Now what should I do? Before he ' blows it seems to load the images. Also to get two jobs trying

  • Computer may not start

    My computer fails to start whenever I turned on and must go through the repair process of starting for the last two months. I have not installed any new software or hardware. Would it be the Windows updates that I download are at the origin of the pr