Styling Ranges of text

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Styling Ranges of text

    Hi,

    I'm having problem with the TextArea- and/or RichText-controls in Flex. I
    can't find any way to change the background color or individual lines or
    characters in the control. I've tried to apply styles to tags in the
    htmlText-property. But no luck there.

    Is it even possible to do this in Flex3?

    Thanks in advance
    Patrik

    patsko Guest

  2. Similar Questions and Discussions

    1. Styling Text Components
      In my movie, I have loaded XML data using the XMLConnector component. All my XML text loads perfectly fine into my different components, however,...
    2. Searching with Date Ranges
      If I want to show events (records in a MySQL table) for the next 10 days (and I do), what would be the best approach to searching with this range? ...
    3. Selecting rows in ranges
      What is the fastest way to select rows x to x in a table using db2? Following is the query to do this in Oracle. What is the equivalent in db2?...
    4. [ANN] EASY RANGES released...
      Hey folks, Just wanted to let you know I have made available a free FMP snap in file that allows you to generate date ranges in the Quickbooks...
    5. Difference between .. and ... in boolean ranges
      I'm a bit confused by some Ruby behavior I'm seeing with ranges. As I understand it the difference between 0..5 and 0...5 is that the...
  3. #2

    Default Re: Styling Ranges of text

    I've now tried a workaround with labels/textInputs that autosizes and flows.

    But I don't get the editing I want. Since I can't select text between the
    inputboxes.

    Does anyone have any info on the problem with background colors on specific
    ranges of text?

    /Patrik

    patsko Guest

  4. #3

    Default Re: Styling Ranges of text

    That has been asked here before with no useful response. Basically you would
    need to do it yourself. It isn't terribly hard to do, just tedious.

    This is easier with using a single font/height for your code, but basically
    you can use TextLineMetrics to get information about a given line of text, or
    more specifically a given letter. You can then draw the background based on
    those offsets.



    slaingod Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139