How do I make the text in a List cell wrapover?

The problem with the code below is that TextFormt does not support wordWrap which is supported by TextField(which, unfortunately has no effect on a List component).
var lb = new TextFormat();
     lb.bold = true;
     lb.align = TextFieldAutoSize.
     lb.color = 0x000066;
var sqsL:List = new List();
     sqsL.rowHeight = 44;
     sqsL.setSize(204.8,176);
     sqsL.setRendererStyle("textFormat", lb);

Here is a solution. The key to the solution is the class MutliLineCell which extends the CellRenderer.
//Main.as : Main classs
package{
    import fl.controls.List;
    import fl.core.UIComponent;
    import flash.display.Sprite;
    public class Main extends Sprite{
            private var sqsL:List
              public function Main(){
                      var longText;string = "This text is too long to fit in a List cell. A class, MultiLineCell class as been created to wrap it"
                      sqsL = new List();
                      sqsL.rowHeight = 44;
                      sqsL.setSize(200,176)
                      sqsL.setStyle('cellRenderer',MultiLineCell)
                      addChild(sqsL);
                      sqsL.addItem(longText);
//The MultiLine cell renderer
package {
    import fl.controls.listClasses.CellRenderer;
    public class MultiLineCell extends CellRenderer  {
          public function MultiLineCell(){
              textField.wordWrap = true;
              textField.autoSize = "left";
          override protected function drawLayout():void {           
              textField.width = this.width;
              super.drawLayout();

Similar Messages

  • How can I make the text bigger in iCal?

    How can I make the text bigger in iCal?  I've looked at Preferences and View. 

    Sorry, did not see that you are using 10.6.7

  • This is probably a dumb question, but I can't find an answer. How do I make the text on my calendar larger so I can actually read it when I print it out?

    This is probably a dumb question, but I can't find an answer. How do I make the text on my calendar larger so I can actually read it when I print it out? I am using a MacBook.

    Press "Command P" and when the Print dialogue box comes up, towards the bottom there is an option allowing you to choose the text size, i.e: small, med, large.
    Hope this helps,
    NEIL

  • How can i make the text bigger?

    How can i make the text bigger?

    1. press "T" to bring up the text tool.
    2. click the text you want to edit
    3. highlight the text you want to change size with your cursur
    4. If it's not already up, press Command + T to bring up the text tool box and adjust the size under the character group. The value you want to change will have a "TT" next to it.
    If this doesn't help. More details will help us help you.

  • How can i make the text go vertically in numbers

    How can I make the text vertical in numbers?  I have merged the cells and cannot find an option for making it go vertical as opposed to horizontal.

    I already gave two tools to fit this kind of needs.
    tip #1 :
    --{code}
    --[SCRIPT write_vertically]
    Enregistrer le script en tant que Script : write_vertically.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications :Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Saisir dans une cellule le mot à écrire verticalement puis le sélectionner.
    ATTENTION, il ne faut pas sélectionner la cellule mais le mot qui doit apparaitre surligné.
    Aller au menu Scripts , choisir Numbers puis choisir “write_vertically”
    Le script colle dans la cellule le mot apès avoir inséré un return entre tous les caractères.
    Pour mon usage personnel j'associe un raccourci à ce script grace à FastScripts.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: write_vertically.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    In a cell, type a word to write vertically then select it.
    CAUTION, don’t select the cell but the word which must be highlighted.
    Go to the Scripts Menu, choose Numbers, then choose “write_vertically”
    The script insert in the cell the word after inserting a return between every characters.
    For my own use, I link a shortcut to the script thank to FastScripts.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/12/17
    2012/01/01 no longer use a local variable, use result
    --=====
    on run
    Clear the clipboard *)
      set the clipboard to ""
    Copy the selection in the clipboard *)
              my raccourci("Numbers", "c", "c")
    Loop waiting that the clipboard is really filled *)
              repeat
                        try
                                  if (the clipboard as text) is not "" then exit repeat
                        on error
                        end try
              end repeat
    Extract the clipboard's content *)
      the clipboard as text
    Insert return between every characters *)
              my recolle(every character of result, return)
    Fill the clipboard with the edited string *)
      set the clipboard to result
    Paste in the cell *)
              my raccourci("Numbers", "v", "cas")
    end run
    --=====
    on recolle(l, d)
              local oTIDs, t
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d
              set t to l as text
              set AppleScript's text item delimiters to oTIDs
              return t
    end recolle
    --=====
    on activateGUIscripting()
      (* to be sure than GUI scripting will be active *)
              tell application "System Events"
                        if not (UI elements enabled) then set (UI elements enabled) to true
              end tell
    end activateGUIscripting
    --=====
    ==== Uses GUIscripting ====
    This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
    It may be used to 'type' keyboard raccourcis if the third parameter describe the required modifier keys.
    I changed its name « shortcut » to « raccourci » to get rid of a name conflict in Smile.
    on raccourci(a, t, d)
              local k
              tell application a to activate
              tell application "System Events" to tell application process a
                        set frontmost to true
                        try
                                  t * 1
                                  if d is "" then
      key code t
                                  else if d is "c" then
      key code t using {command down}
                                  else if d is "a" then
      key code t using {option down}
                                  else if d is "k" then
      key code t using {control down}
                                  else if d is "s" then
      key code t using {shift down}
                                  else if d is in {"ac", "ca"} then
      key code t using {command down, option down}
                                  else if d is in {"as", "sa"} then
      key code t using {shift down, option down}
                                  else if d is in {"sc", "cs"} then
      key code t using {command down, shift down}
                                  else if d is in {"kc", "ck"} then
      key code t using {command down, control down}
                                  else if d is in {"ks", "sk"} then
      key code t using {shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "k" then
      key code t using {command down, shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "a" then
      key code t using {command down, shift down, option down}
                                  end if
                        on error
                                  repeat with k in t
                                            if d is "" then
      keystroke (k as text)
                                            else if d is "c" then
      keystroke (k as text) using {command down}
                                            else if d is "a" then
      keystroke k using {option down}
                                            else if d is "k" then
      keystroke (k as text) using {control down}
                                            else if d is "s" then
      keystroke k using {shift down}
                                            else if d is in {"ac", "ca"} then
      keystroke (k as text) using {command down, option down}
                                            else if d is in {"as", "sa"} then
      keystroke (k as text) using {shift down, option down}
                                            else if d is in {"sc", "cs"} then
      keystroke (k as text) using {command down, shift down}
                                            else if d is in {"kc", "ck"} then
      keystroke (k as text) using {command down, control down}
                                            else if d is in {"ks", "sk"} then
      keystroke (k as text) using {shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "k" then
      keystroke (k as text) using {command down, shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "a" then
      keystroke (k as text) using {command down, shift down, option down}
                                            end if
                                  end repeat
                        end try
              end tell
    end raccourci
    --=====
    --[/SCRIPT]
    --{code}
    tip #2 :
    --{code}
    --[SCRIPT rotate_cell_contents]
    Enregistrer le script en tant que Script : rotate_cell_contents.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner une cellule dont le texte doit être tourné de 90 degrés.
    Aller au menu Scripts , choisir Numbers puis choisir “rotate_cell_contents”
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: rotate_cell_contents.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a cell whose contents must be rotated for 90 degrees.
    Go to the Scripts Menu, choose Numbers, then choose “rotate_cell_contents”
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/06/23
    2011/06/26 -- No longer use an auxiliary text box. Now keep the text attributes.
    2012/01/31 -- edited for Lion
    --=====
    on run
              local dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2
              local le_texte, la_largeur, la_hauteur, myNewDoc
              my activateGUIscripting()
    Extract properties of the source/target cell *)
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
                        set selection range to range (name of column colNum1 & name of row rowNum1)
              end tell
    Cut*)
              my raccourci("Numbers", "x", "c")
    Trigger Preview *)
              tell application "System Events"
                        if "Preview" is not in (name of every application process) then launch application "Preview"
              end tell
      delay 0.2 -- required
    New document from the clipboard *)
              my raccourci("Preview", "n", "c")
    Rotate to left *)
              my raccourci("Preview", "l", "c")
    Copy *)
              my raccourci("Preview", "c", "c")
    Quit *)
              my raccourci("Preview", "q", "c")
              (system attribute "sys2") < 7
              if result then
    Click the [Don't Save] button in the warning sheet *)
                        tell application "Preview" to activate
                        tell application "System Events" to tell application process "Preview" to tell window 1
                                  name of buttons
                                  repeat 50 times
                                            delay 0.1
                                            if exists sheet 1 then exit repeat
                                  end repeat
                                  tell sheet 1 to click button 2
                        end tell
              end if
    Back to Numbers *)
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
      -- just reset the focus on the table
              end tell
    Paste in the cell *)
              my raccourci("Numbers", "v", "c")
    end run
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    on get_SelParams()
              local d_name, s_name, t_name, row_num1, col_num1, row_num2, col_num2
              tell application "Numbers" to tell document 1
                        set d_name to its name
                        set s_name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if

  • When I print a webpage from FF how can I make the text and images bigger?

    I am trying to print an eticket for a flight. The text on the schedule comes out too small and the UPC symbol's black lines look ganged together. I know I can view it zoomed up, but how do I make the text and images stay zoomed so they will print out that way?

    I upgraded but the problem remains. At least with Firefox I do have the option to print a selection even if it mangles the top and bottom lines. With Safari or Chrome I have no option to print a selection. At the moment the only way to get a complete copy of the selection is to copy to openoffice etc and print from there.

  • How do I make the text in iTunes a lot larger?

    How do I make the text in iTunes a lot larger?

    I use an old iTunes. Check if there is something in iTunes preferences, but I doubt there is.  You may have to simply use something such as Universal Access preferences to zoom your whole screen.  I do recall coming across a reference for a hack to edit iTunes fonts in the application itself but if you enlarge the font as opposed to simply tweaking it slightly with a very similar one you are likely to really mess up iTunes display since the rest of the application won't have been designed with scaled up fonts in mind.
    I can also personally recommend reading glasses.

  • How can I make the text crisper and less blurry on my MacBook Pro?

    I just purchased my first MacBook Pro, and I absolutely love it, save for one potential deal breaker: The text displays blurry. Instead of stark, black on white text, there is a slight halo of grey (or whatever color the font is in) around every character. It makes the text look nice, but much harder to read. The characters are deliberately out of focus. Apparently this is normal, according to this article: http://seattletimes.nwsource.com/html/businesstechnology/2015823073_ptmrsh06.htm l
    Is there a way to fix (or work around) this? As a writer, I cannot type for eight hours a day on a computer that "softens" the text. I have tried adjusting my screen resolution (it's at the highest possible) and turning off "font-smoothing" (it's off). Nothing works. I called Apple support and they couldn't help me either. I can't believe there's not an easy fix for this.

    Humor me.
    Let's revisit the things you did, because they -should- have fixed the problems.
    !) to set screen resolution, you MUST use:
    System Preferences > Displays ...
    Use of the MenuBar item simply shows the last three chosen, not all available.
    And what is the screen resolution you are using now? 13" 15" or 17" display? Do you have the default glossy screen or the enhanced matte display?
    2) font smoothing.
    System Preferences > Appearance.
    I see no OFF. I see a checkbox to default to LCD smoothing, and I see   "turn off font smoothing for characters smaller than nn point", where nn is 4 to 12.
    How do you have these set?

  • How can I make the text larger in this flashing box from Old Toad?

    I'm trying to use flashing text here: http://web.me.com/phelpssculpture/Site/hands_on.html
    which I copied from OldToad's site here:http://web.me.com/toad.hall/Demo_1/Miscitems.html
    I can't figure out how to make the text larger.
    Any suggestions?
    Thanks, David

    At the end of the code, you can find
    document.write('You can add Blinking Text!');
    insert a "size" attribute to "font" tag (eg. size="10")
    document.write('You can add Blinking Text!');

  • How do I make the text larger on my desktop?

    I want to enlarge to text/font size on my desktop (and in my e-mail and applications, etc - the default) without losing crispness/clarity/focus. I'm sure it is a simple setting, but I can't find it and my font is tiny! I have found other ways to zoom in, etc, but it looks bad and out-of-focus.

    For the Finder.
    Click on the Desktop, go to the top menu bar View Menu, select Show View Options, make the Text Size option the size you require, close the menu box.
    For Mail.
    Go to Mail/Preferences, click Fonts& Colors, change the options to the Fonts and sizes required, close the preference box.
    Other Applications.
    Follow the Preferences link and select accordingly

  • How do I make the text and overall browser Font's bigger? I'd like to make the actual letters bigger on the websites I am viewing as well as the option menus at top of browser.

    Right now when I am using FireFox the FONT and overall text on the web pages are very small. This includes the option menus in top left of browser,the web address bar, and even this here request. Every website I view also shows up with very small font and is hard to see. I would like to make the font larger and cannot figure out how. Please help, Thank you for your time!

    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * If a missing item is in the toolbar palette then drag it from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • How to make the text of a list entry bold ?

    Hi,
    I have a page named, for example, "Manage Streets". This page has a sidebar which has three menu items (a list with three entries); "List of Streets", "Add Street", "Edit Street".
    What I want is that when the user clicks "List of streets", and HTML DB navigates to that page, the text of the item/entry is shown in bold. And when the user navigates to another page, let's say "Add Street",this last entry should be shown in bold and the previous should be back to normal.
    I presume I have to edit some HTML code or CSS, but I don't know how or where.

    Allright, I found something that works just as fine.
    Go to your application's shared components and choose list. Then select an entry from the chosen list. Under "current list entry", in the listbox "List Entry Current for Pages Type", choose "colon delimited page list".In the textbox beneath it, type the pagenumbers where the list entry is current. On those pages, the list entry text will be shown bold/highlighted.

  • How can I make the text larger... I cant read it anymore

    I need to have the text enlarged..how do i do that.
    I cannot read anything on my pages anymore

    There are some add-ons that can be used to change the zoom level on all sites, for example:
    * NoSquint - https://addons.mozilla.org/firefox/addon/nosquint
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/default-fullzoom-level

  • How can I make the text insertion caret/cursor easier to see in InDesign?

    I'm using InDesign CS5, and it doesn't comply with Windows 7 Ease of Access settings regarding the text insertion caret/cursor thickness. Is there a fix for this?
    P.S. QuarkXPress has the same problem, so whichever software resolves it first wins!

    Interesting approach. I see how that could be useful for making things like text box guides easier to see depending on the chosen colors. Unfortunately, it has no affect on the text insertion caret/cursor. It remains the same size and thickness, and it is very difficult to find regardless of how much I zoom in.

  • How do I make the "text" after the checkboxes visible?

    (The Dreamweaver 8 text reads, as follows)
    quote:
    To add checkboxes to a form:
    1. Click in the left column of the sixth row, type
    Check all of the musical styles that interest you.
    (including the period), and then press the
    Tab key to move the insertion point to the next cell.
    2. Click the
    Checkbox button in the
    Forms category on the Insert bar to insert a checkbox in the
    cell.
    3. In the Property inspector, type
    Punk in the Checkbox Name text box, and then click the
    Unchecked option button, if necessary.
    4. Click to the right of the checkbox in the table, type
    Punk, and then press the
    Shift+Enter keys to create a new line in the cell.
    5. Repeat Steps 2 through 4 to create the following
    checkboxes:
    Alternative,
    Trance, and
    Jazz. See Figure 9-33 (Pg.515 Dreamweaver 8 textbook)
    The following is the CODE where I added checkboxes to a form:
    quote:
    <tr>
    <td><div align="right">Check all of the musical
    styles that interest you. </div></td>
    <td><div align="left">
    <input name="Punk" type="checkbox" id="Punk"
    value="checkbox" />
    <br />
    <input name="Alternative" type="checkbox"
    id="Alternative" value="checkbox" />
    <br />
    <input name="Trance" type="checkbox" id="Trance"
    value="checkbox" />
    <br />
    <input name="Jazz" type="checkbox" id="Jazz"
    value="checkbox" />
    </div></td>
    </tr>
    However, the only thing I see in DESIGN View is this the
    previous text, "Check all of the musical styles that interest you."
    and the four checkboxes "without" the text that should follow each
    box .
    Please, help, explain what steps I should take, next, to make
    the following words (Punk, Alternative, Trance, and Jazz) visible
    in the DESIGN View, following each of the four checkboxes.
    Thank you for your help!
    This Support Forum is the BEST!
    Respectfully, Ona

    Sorry - you're sending us to the Webforum which is a real
    pain to scroll
    miles through to discover what questions and answers there
    are. Could you
    start a new thread? It looked as if it might have been a
    discussion with
    Murray but it's really difficult to tell as the last I saw
    was Murray asking
    you to do something - I think.
    Jo
    "OnaTutors" <[email protected]> wrote in
    message
    news:f3iuuc$moe$[email protected]..
    > Geschenk, You ROCK!
    >
    > THANK YOU! THANK YOU, SO MUCH!
    >
    > You went ABOVE and BEYOND the call of duty! Thank you
    for helping with
    > the
    > other errors in my CODE, too.
    >
    > You saved my Final Project for my course in Web
    Construction 2, due
    > "tonight"
    > @ midnight!
    >
    > I've just got 2 more questions to troubleshoot!
    >
    > Thanx for all of your help!
    >
    > If anyone is interested, these are the other two
    questions that I'm
    > TROUBLESHOOTING:
    >
    >
    >
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=189&threadid=
    > 1271560
    >
    >
    >
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=189&threadid=
    > 1271584
    >
    > Thanks for helping me out, everyone!
    >
    > Respectfully, Ona
    >
    >
    quote:
    Originally posted by:
    geschenk
    > you do have some quirks in your current form -- as to
    your checkboxes ::
    > please replace the current
    value="checkbox" with e.g.
    >
    value="Punk", and furthermore you just need to place a plain
    text
    > description after the checkbox tag
    >
    > that´s it ;-)
    >

Maybe you are looking for

  • Need help in procedure

    Hi Experts, I have wrote a procedure which is being fired by a trigger and update or insert the Attendance_day table on the basis of punch string, the below issue is coming when employee do two regular shift. [code] select * from ATTENDANCEMASTER whe

  • How do I use separate apple ids on one iPad?

    On our original iPod we bought apps under one apple ID. Three years later with our first iPad, we used a different ID for purchases. Now we want to install the original apps (at least some of them) on our new iPad air. How?

  • OT: help me out of domain name purgatory!

    Just got an email from my domain host saying my domain has expired, and I have to pay a $70 reinstatement fee on top of the $10/yr registration fee. The site is hosted elsewhere, and it wouldn't cost anything to just move the domain over to the web h

  • How do I open the browser to my homepage instead of all the previous tabs after telling firefox to automatically save the tabs that were open when I closed the browser?

    After telling my browser to 'not ask this question again' when it asked my if I wanted to save all the tabs before closing firefox, I now just want firefox to open to my homepage when I open it. Can you tell me how to change the settings to undo my p

  • An easy question

    Hi!! I'm facing with the following problem: I would like to access a file from SAP, which can be located on a file server (it can be accessed from my windows like this: servernamepath ilename). The access of this server requires identification: usern