TextFormat text size does not

Hello, I use this code to create a window that will be used for the settings dialog in my application.

private function createSettings():void{
            sw = new Sprite();
            sw.visible = false;
            sw.graphics.beginFill(0xCCCCCC,0.9);
            var pos_x:Number = (stage.stageWidth - 712)/2;
            var pos_y:Number = (stage.stageHeight - 400)/2;
             sw.graphics.drawRoundRect(pos_x,pos_y,712,400,100,100);
            sw.graphics.endFill();

            var formatSettingsTitle:TextFormat = new TextFormat();
            formatSettingsTitle.align = "center";
            formatSettingsTitle.bold = true;
            formatSettingsTitle.color = 0x000000;
            formatSettingsTitle.size = 72;

            var lblSettingsTitle:TextField = new TextField();
            lblSettingsTitle.selectable = false;
            lblSettingsTitle.setTextFormat(formatSettingsTitle);
            lblSettingsTitle.autoSize = TextFieldAutoSize.CENTER;
            lblSettingsTitle.text = "Settings";
            lblSettingsTitle.x = (sw.width - lblSettingsTitle.width)/2;
            lblSettingsTitle.y = pos_y + 20;
            sw.addChild(lblSettingsTitle);

            addChild(sw);
        }

Creating a grey area rounded, but the size of the text inside is 12. Why not change the size of the text?

Hey,.

try to use the defaultTextFormat of the textfield with the setTextFormat like this property:

private function createSettings():void{          sw = new Sprite();            sw.visible = false;           sw.graphics.beginFill(0xCCCCCC,0.9);          var pos_x:Number = (stage.stageWidth - 712)/2;            var pos_y:Number = (stage.stageHeight - 400)/2;            sw.graphics.drawRoundRect(pos_x,pos_y,712,400,100,100);          sw.graphics.endFill();

          var formatSettingsTitle:TextFormat = new TextFormat();            formatSettingsTitle.align = "center";         formatSettingsTitle.bold = true;          formatSettingsTitle.color = 0x000000;         formatSettingsTitle.size = 72;

          var lblSettingsTitle:TextField = new TextField();         lblSettingsTitle.selectable = false;          lblSettingsTitle.setTextFormat(formatSettingsTitle);          lblSettingsTitle.defaultTextFormat = formatSettingsTitle;            lblSettingsTitle.autoSize = TextFieldAutoSize.CENTER;         lblSettingsTitle.text = "Settings";           lblSettingsTitle.x = (sw.width - lblSettingsTitle.width)/2;           lblSettingsTitle.y = pos_y + 20;          sw.addChild(lblSettingsTitle);

          addChild(sw);     }

Hope that helps. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • HP officejet pro 8600 save as editable text (OCR) does not

    HP officejet pro 8600 save as editable text (OCR) does not

    the printer reports: can not detect install OCR s/w...please

    IrisOCR 12.3.4.0 is indicated as being installed

    How can I get printer recognize/find OCR?

    1 uninstalled existing installation

    2 deleted all files

    printer 3.re - installed s/w

    4 still does not

    5 uninstall printer new s/w (about you 4th time)

    6. deleted all files in HP printer

    printer 7.re - installed s/w BUT

    8.re - installed in a different folder: HP-2

    Now everything works fine

  • OfficeJet Pro 8600 Premium error paper size does not match

    I try to print an envelope #10 that I printed several times in the past, but today I get the error that the detected paper size does not match.  I print on MS Word with the selected for the #10 envelope paper size.  I loaded the envelope properly.  Why is he not feel today when it was fine yesterday?

    Hello

    The application, go to Printer preferences. What size and type of paper is selected here?

    You have restarted your computer since yesterday?

    Thank you

  • "Canvas size" does not remember last setting used

    I noticed that "Canvas size" does not save the last settings used more in Photoshop CC 15.5. It is located in centimetres every time.

    The "Image size" option screen keeps the last used settings.

    This used to work properly in Photoshop 14 CC.

    Canvas size always comes back to the unit which is defined in Edition > Preferences > units & rulers.

    "Image size" in the upper part of the window always the size in pixels and under the print format, but never shows in pixels.

    If your preferences setting is "mm", the print size will be shown in mm.

    If your preferences setting is "pixel", the print size will be shown in cm or mm or inches, but not in pixel.

    Fenja

  • When I create a button "submit" text "Submit" does not appear on the actual button.

    When I create a button "submit" text "Submit" does not appear on the actual button. Anyone know what is the problem?

    Depends on how you file the form. In Acrobat, it has a property to set the appearance of the button. In AA 8, field properties appear as below:

    It may vary in other versions (I on other machines), but the basic idea is the same. Need to add the label.

  • For Acrobat 9. Editing text tool does not work.

    Acrobat 9. Editing text tool does not work - even on documents created with my computer using fonts. Problem 2: when you try to export to Word 2010 there is no option for format Dox, only the .doc that belonged to earlier versions of Word.

    When you run the Recognize text command, you can select ClearScan for PDF output style. This then allows to modify the text in the PDF document. Right now, you probably use the searchable Image option by default when running OCR, which creates an invisible text layer in your document under the actual image. That's why the change does not appear in your document, but it is displayed when you export to Word. Here's a little trick that explains what you need to do:

  • Change the size of the text only does not work

    Font size standard on most of the Windows I have open in Windows 8 is a 5 or 6. I'm in front of my computer, 6 to 8 hours per day (teacher online), and it's the single most annoying problem that I have ever met.  "Change the size of the text only ' on my display settings page is grey - there is no solution.  Can I change the size of everything, that gives me giant icons, but the text on all the windows is still tiny.

    I hope someone has a useful suggestion. Please don't tell me to go to "Change the size of text only." This is the function that does not work.
    My Windows 8 was purchased in January - part of the Microsoft $! 5 offer to people who bought computers between October and December of last year. The installation went fairly well, but I had this problem of fonts since then.  ASUS computer laptop, Intel core I7, good resolution, good speed, ideal machine, except that Windows has me squint all that day, seven days a week.
    Thank you and best regards, all
    Reggie Audibert

    Font size standard on most of the Windows I have open in Windows 8 is a 5 or 6. I'm in front of my computer, 6 to 8 hours per day (teacher online), and it's the single most annoying problem that I have ever met.  "Change the size of the text only ' on my display settings page is grey - there is no solution.  Can I change the size of everything, that gives me giant icons, but the text on all the windows is still tiny.

    I hope someone has a useful suggestion. Please don't tell me to go to "Change the size of text only." This is the function that does not work.
    My Windows 8 was purchased in January - part of the Microsoft $! 5 offer to people who bought computers between October and December of last year. The installation went fairly well, but I had this problem of fonts since then.  ASUS computer laptop, Intel core I7, good resolution, good speed, ideal machine, except that Windows has me squint all that day, seven days a week.
    Thank you and best regards, all
    Reggie Audibert

    Hi Reggie

    The option "Change only the size of the text" applies only to the text for the following items.

    Title bars

    Menus

    Message boxes

    Titles of palette

    Text of the icon

    ToolTips

    What you need to do is select the link "Custom resizing options" directly above the option "Change only the text size.

    In the dialog box move the cursor in the rule box, hold down the left button of the mouse and drag the rule. If the size is 100%, try to start with it to 125%.

    Click OK, and then apply. You will be asked to disconnect / connect to before the change takes effect.

    If 125% does not for you try to bump the size up one another 10% gradually until you are satisfied.

    Let us know if it works for you.

    Concerning

  • the font size does not... * & ^ % $

    Hi all

    I don't know what is happening but my code does not change the size of my text.

    I have a toggle button that works fine on everything except the size of the text.

    I have a dynamic text field called myText text and here is the code I use.

    function maisLegendaF(e:MouseEvent):void {}

    var formatT:TextFormat = new TextFormat();

    {if(!e.currentTarget.Toggle)}

    myButton.gotoAndStop (2);

    formatT.size = 19;

    myText.setTextFormat (formatT);

    }

    else {}

    myButton.gotoAndStop (1);

    formatT.size = 12;

    myText.setTextFormat (formatT);

    }

    e.currentTarget.toggle =! e.currentTarget.toggle;

    }

    Can someone help me out here? PLS?

    Thanks in advance!

    I don't know what I'm trying on different files and nothing works... I solved it by using scale on the text box!

    Thank you very much!!

  • BlackBerry 10 Q10 Message text box does not scroll past two lines

    When you type a message in the message text box, the text does not scroll to the 3rd entry line until the line is completed. I find myself typing blind to line 3 of my message until the line 3 is full... then it scrolls to the top and becomes visible in the message text box. Any suggestions?

    Had the same problem.  You must have changed the font size of your device to a point 10 or above fonts.  If you set it to original font size which is 8, it works perfectly again.  IHAVE that mine now set at 9 and it the text field scrolls correctly now.  It must be a bug in Blackberry software so if you read these messages please fix it as I'd rather watch 10-point font.

  • Why the text tool does not work?

    whenever I choose the text tool that doesn't work. It allows me to create the bar, but the curosor doesn't even blink. I type and its Blanck. I hit accept the test I typed shows on the layer, but not on the screen, I need help. I've even updated, reinstalled. I need help I am ready to throw my laptop. Please someone

    Is this a new problem with an old facility?

    Or a new facility and the Type of tool has never worked?

    What is the size of the image in pixels and resolution?  Something that sometimes happens is that people get the wrong units and I think they are pixel setting when it is in fact centimeters.  If you have a low resolution game, like the default 72 dpi, which can cause the tiny text, it might as well be invisible.  This is particularly problematic when the Type is set on Points.  To test simply do a new document with reasonable proportions.  that is 1000 x 1000 pixels, 300 dpi

    Another test is to select the text layer and use free transform, or zoom so you can see if you have a small bounding box.

    If this isn't the question and the text color is not the same as the background, then...

    First step is to reset the preferences.  (The relocation does not overwrite the preferences file).

    Also try resetting subject tools.

    Then uninstall Photoshop and use the cleaning tool before reinstalling.

  • Image adjustment and canvas size does not

    Hello world

    I'm trying to save an action on an open image. I first choose the command "Mount Image" and enter a size of 1580 x 2000 pixels (do not expand). I then choose the size of the canvas and try and enter the dimensions in pixels of 1580 x 2000 pixels but although I input these numbers, when I view the details of this step of action of canvas, he always says height: 2000 pixels, Vertical: Center, but it does not the width of 1580.

    It seems that for some reason any program won't allow me to enter the same dimensions in pixels in two separate measures, consecutive. I remember successfully made this a few weeks ago, but I don't know why it doesn't work now.

    I was wondering if someone could help me out and let me know what I could do wrong?

    Thanks in advance.

    I have never see that happen if you change the two dimensions of the canvas. can you show a screenshot if registered in the palette step actions. Here what I get... If you want to save the step size of canvas after made stage image to save on both sides, you need to change both one side will be 2000 or 1580.  So, you need fix this first. stop recording changes the size of the canvas to 1581 x 2001. Then start of new record replaces canvas size to1580x2000.

    When you record steps if you do not change a default option offered Photoshop will not record anything for this option and Photoshop uses its default value.  It's very important when you want things like the name of the current document to use other options as the current path to use. If you change only the saved value will always be used.   Here you want you still want the canvas image size to be extended to the full 1580 x 2000 therefore with other reports l / h of images will focus on a canvas of 1580 x 2000.

    Package of shares of crafts UPDATE August 10, 2014 added conditional measures Action Palette tips.
    Contains

    Example of
    Download

  • The text tool does not work in Photoshop CC

    When I try to use the text tool, that it does nothing when I type even if the font size is 12, and the color is black on a white background, and then when I try to get out of the text tool a progress bar will appear that says "Record type" and the progress bar does not until 15 minutes later. After that, no text shows. I tried to move the text tool above where I have used it previously, and the cursor doesn't detect any text in the box.

    This is a brand new installation of photoshop, I did not any customizations to it.

    My operating system is a Mac with OS X 10.7.5.

    I already tried things:

    …………………………………………….

    -J' tried to uninstall and reinstall Photoshop CC and creative cloud.

    -J' tried to change the font size, color. Each took 15 minutes due to the type of rendering progress bar.

    -J' tried to change major fonts such as Verdana, Arial, etc..

    -J' did the steps on this page to troubleshoot fonts:

    http://helpx.Adobe.com/Photoshop/KB/troubleshoot-fonts-Photoshop-CS5.html

    It was the procedure on this page:

    S ' ensure that Photoshop is the most recent version.

    -Clear overview of the policies.

    -Delete the specified fonts known to cause trouble.

    -Clear cache fonts photoshop

    -Clear cache OS police

    -Try to remove everything except a font on the Mac and keep the rest in another folder.

    -Use their fonts test script.

    Now the police only that I have in my folder of Mac fonts is Arial.ttf

    I did all these things, and the problem still occurs. All other tools works fine for me! I need to use photoshop for graphics work, I need to do. Any help would be greatly appreciated!

    I found the problem! When I pressed 'File' > 'New' to make a new document, I typed in the 1000, but I'm used to the measures in pixels, not inches. The new facility was in inches lol. The Web was gigantic! Once I put it to a smaller size that the text tool worked great! I feel stupid, I over looked that.

  • Master page text frame does not appear on the pages of the child of the master

    Why a block of text on my A-master (indicated under control) does not control the size of the blocks of text on the pages of the children of this master? Is a likely answer that I placed the text on the pages of the child until I entered the text block on the A-master. But even at this stage, when I create a new A-master, there is no block of text at all, in order to recreate and redo the problematic child pages appear not to be a solution. Thanks in advance.

    Hello

    When you click on the Plus sign next to a master page to create another master page, it does not inherit the master page objects. It simply creates an empty template. If you want the new master page to inherit the objects, then right-click on the desired master page and choose 'duplicate page.

    As child pages are concerned, Yes, they should inherit all objects and properties of the master page. It's really weird if his past is not for you. What happens when you right click on the page child and apply desired master for this menu?

    Kind regards

    Aish

  • Text resize does not!

    It was me upset all day.


    I can't understand why it does not work. Could someone help me solve this darn irritating problem?


    Here's where I got the code- http://davidwalsh.name/change-text-size-onclick-with-javascript




    Here is an example of the problematic code >. <


    http://www.dylricho.com/coreict/portfolio/Unitone/requirements.htm




    Thanks to anyone who helps or attempts.

    @ Nancy

    Thanks for this code, could perhaps explain what the average '4' and '30'?

    Those are hooks for the JavaScript Cookies to "remember" what the user has selected and take it to the next page on your domain.  I don't get the Cookie code.  If you wish, I can provide.

    Is the '2.5em' part how the text is increased from the original size, or is the actual size, increased and the original combined?

    Assuming that the 1em = 100% the base font, then 2.5em = 2.5em or 250% of the user of the browser's default text size. If the base 1em = 75% font, then 2.5em will have a different meaning.  I hope that makes sense.

    How I could put this code so it only changes the class of 'content '?

    You can not. My method intentionally everything (including container widths & images) resizes proportionally to the rest of the page.

    If you need to target specific selectors, see this link for more information:

    http://www.dynamicdrive.com/dynamicindex9/fluidtextresizer.htm

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Text direction does not work in pure AS3 project built with Flash CS5

    No idea why it does not work? The rest LTR text direction no matter what I do. I tried moving when the text is printed with no luck.

    This text is the only difference I get:
    Trademark < police = "Lucida Sans Unicode" >® < / make >

    Is rendered as:
    ® Registered TRADEMARK

    protected function configureText(title:String):void
    {
         this.textField = new TLFTextField();
         this.textField.autoSize = TextFieldAutoSize.LEFT;
         this.textField.mouseChildren = false;
         this.textField.mouseEnabled = false;
         this.textField.selectable = false;
         this.textField.wordWrap = false;
        
         this.textField.htmlText = title;
        
         var format:TextLayoutFormat = new TextLayoutFormat();
         format.color = this.defaultTextColor;
         format.direction = Direction.RTL;
         format.fontFamily = "Arial";
         format.fontSize = this.size - 4;
         format.textAlign = TextAlign.RIGHT;
        
         this.textField.textFlow.hostFormat = format;
         this.textField.textFlow.flowComposer.updateAllControllers();
        
         this.addChild(this.textField);
    }

    Update with Flash CS5 11.0.2.489

    The characters that are part of left right scripts are defined by default left to right. The characters that are part of right to left scripts (for example, Arabic or Hebrew) are defined right to the left. Characters such as punctuation (or the registered trademark symbol) is set according to the default direction. So in your example the trademark symbol filed out on the other side because his game rtl. Had you set the Arabic or Hebrew, it would come out right on the left. The default direction is also used to determine if the dash, for example, should go left or right.

    You want your English text to come out right on the left? What effect you are trying to get?

    Thank you

    -robin

Maybe you are looking for

  • Ringtone-problem with iOS 10.0.1

    I have an iPhone6 with the current iOS10.0.1. In my previous iOS I could assign a ringtone to each contact that I made. After the update to iOS10 default ringtone serves only is not available, but then, not really for me to use. I have different need

  • only sms message not snapshot option available

    I seem to only have an option for sms and do not see an option for an instant message? Of course, an instant message is free and I have to pay for one sms.

  • Touch screen stuck on the message.

    Touch screen on printer suddenly displayed, "checking device. This process may take several minutes. Do not turn the unit off. "This has happened since yesterday. I don't know how to get out and I can't use the printer. Help

  • problem running HelloWorldDemo

    I use the JDK 4.6.1.  I think I have all the right software installed and have my path set correctly, but when I put the active project HelloWorldDemo, build, and run the Simulator rises, but the demo app is not in applications folder.

  • Windows 7 Home premium and Sync Center

    Why Sync Center exists in Windows 7 premium (in Control Panel), and it opens but died, when I can't seem to set up offline files? Why help tell me how to work with the files offline, but only manages not to tell me there was apparently no premium? Th