How to add box around text in s:TextArea?

Hi,
What I want to do is I want a red box to appear around some text in my s:TextArea, which is editable.
Well, I can add a red box by putting the following after my text area.
  <s:Graphic>
    <s:Rect x="20" y="110" width="20" height="20" >
         <s:stroke>
              <s:SolidColorStroke color="0xFF8888"/>
         </s:stroke>
    </s:Rect>
  </s:Graphic>
However the user will edit the text, and the text position will change. Also the user will scroll the text area up and down.
So the location of the box should move to still be located around the text.
How can I track the position of the text? Is this a good idea? to track the position of the text and to keep moving the box to keep it on top of the text?
Thanks, Philip

Philip,
How about something like this?
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo">
    <s:TextArea id="txtArea"
            horizontalCenter="0" verticalCenter="0">
        <s:content>
            <s:p>The quick brown fox jumps <s:span backgroundColor="0xFF0000" backgroundAlpha="0.8">over</s:span> the lazy dog.</s:p>
        </s:content>
    </s:TextArea>
</s:Application>
Peter

Similar Messages

  • How to put boxes around text

    Hi 
    I have a section of text that i want to put a box around as an outline
    I managed to do this using   the inspector - text - more - border and rules.
    everything looks great in the authoring tool in both orientations. 
    However, When I preview the book on the ipad the boxes are perfect in landscape but the showv outlines for each line of text that ends with a carriage return.
    Is this a bug with the software...
    Mark..

    Govan,
    1. It's helpful to give a full and complete description of your problem when first posting in order to get a complete answer and avoid follow up posts.
    2. There's no need post the same answer twice.
    My answer: The stroke/line around a text box is all or nothing. If you want to eliminate the line between adjacent text boxes you'll have to draw a white line over the offending line to cover it up. Once this is done, select both text boxes and the line (using shift-click or command-click) open the Arrange menu and choose Group (or press Option-Command-G). This will keep the white line in place if the text boxes move.
    Good luck,
    Terry

  • Creating boxes around text....

    Hi,
    I'm hoping there is a better solution to this problem then what I've using.
    I would like to be able to create a box around text that is able to resize when increasing/decreasing font.
    My working solution is to create a text box with text then use direct selection tool to select the anchors and convert that into a shape, either a rectangle or rounded rectangle. This isn't bad since it allows an equal amount of space around the text but it does have problems. If the font size increases or decreases, the box remains the same. I have to use the Area Type Option to resize the box. Also, if I wanted to do this for lots of boxes then I have to select all of the individual anchors which will be time consuming.
    Is there a simpler solution?
    Thanks.

    Use the Selection Tool (Black Arrow) to select the text and then add a new Fill via the Appearance Panel.
    Move the new fill below the Characters item in the Appearance Panel
    With that fill highlighted choose Effect > Convert to Shape > Rectangle

  • How to add a scrolling text in portrait with iMovie

    how to add a scrolling text in portrait with iMovie

    This is how i was able to do it. Edit html source.
    <div align="center"><marquee id='scroll_news4' bgcolor=#ff9966 "><font color="#000000" size="+1" ><strong>Outlook is down! IT is working on it! </strong></font></marquee></div>
    <input type='Button' value='Stop' id ='b1' onClick='button_click()';>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function button_click()
    if(document.getElementById('b1').value=="Start"){
    document.getElementById('b1').value="Stop";
    document.getElementById('scroll_news4').start();
    }else{
    document.getElementById('b1').value="Start";
    document.getElementById('scroll_news4').stop();
    // End -->
    </script>

  • Who knows how to add emoticons to texts on iphone 4s

    who knows how to add emoticons to text messages on iphone 4s?

    Keep in mind that the Emoji keyboard uses an Apple font. It doesn't always play well with non-Apple devices, Using Emoji when sending a text to an iPhone user can result in weird characters. You're better off using real emoticons:
    smile :-)
    wink ;-)
    And so forth. Android phones will convert them into the proper cutsey symbols.

  • Make the purple box around text and icon of a button go away?

    I have noticed that the first button of a group (or the last one pressed) displays a purple box around the text and/or the icon of a button. I don't want this. How do I get rid of it?

    Have you tried setting the colour that you want manually? Or perhaps setting the setOpaque() method with false?
    Not entirely sure what you mean...what look and feel are you using? Is it the Metal LAF or something else?

  • How to add the long text in Production order through FM

    Hi,
    Iam having custom program which has BAPI (BAPI_PRODORD_CREATE) inside it and this program is used to create Production orders with the details of Sales order Number,Line item,Plant,Order type,Quantity and Start date. This program is scheduled in Background.
    Now client wants to add the Long text (seperate TAB in production order and they want to update the VC details of Sales order in the Long text area).
    One option is after creation of Production order, through BDC(calling CO02 and update the long text) we  can update the long text and client doesn't want this option.
    Another option is after creation of Production order, using Function module SAVE_TEXT, Update the Long text in Production Order and this is not working in Production order (already my ABAP consultant checked it ).
    If any one of you came across this requirement, pl share with me how you addressed it.
    Regards
    A.Sureshbabu

    Hi,
    The method is quite simple, i presume you're quite well versed with doing recording, so the key thing to keep in mind is how to prepare the input file.
    At my end i had about 5 lines of data which needed to be uploaded, hence i had a tab-delimited file with the order nos. in the first column & the five lines of text in five different columns (Refer format below)
    Order No.
    Line - 1
    Line - 2
    Line - 3
    Line - 4
    Line - 5
    12345
    txt - 1
    txt - 2
    txt - 3
    txt - 4
    txt - 5
    67890
    txt - a
    txt - b
    txt - c
    txt - d
    txt - e
    Now provide this input file for your lsmw or bdc program & it will work. You can work with your abaper if you're not so comfortable with LSMW or BDC programming he / she should be able to easily make it work for you.
    Regards,
    Vivek

  • Boxes around text in PDF's

    Sometimes I get a white hairline box around some text when I export to PDF doc. Is there any cure for that?

    That's a transpaerncy flattening artifact called "stitching" that normally doesn't show up in high-resolution printing. The obvious answer is to stop flattening the transparency by exporting to PDF using Acrobat 5 or higher comaptibility.
    If you search for stitiching in this forum you will find more information than you can read in a week.

  • White box around text in pdf

    Hi. In InDesign CS3, Photoshop 7.0 & of course Acrobat 7.0
    I made a Photoshop PDF & brought it into InDesign to export it into a PDF so I can make crop marks.
    The PDF in Acrobat & InDesign both had a white box around some of the text. I had embedded the fonts in Photoshop, so I do not understand why that happened. I went back into Photoshop & just retyped over where the box was appearing & this had solved the problem after I repdfed & imported it into ID. Acrobat viewed the text perfect then.
    I want to prevent this from happening in the future, does anyone know what I can do to look out for things like this?

    Very sorry--that's certainly information I should have included. I have Adobe  Acrobat 9 Standard, version 9.3.3. I'm creating the PDFs from within Microsoft  Word 2007 via the Acrobat tab on the ribbon, clicking "Create PDF."

  • Framemaker 9 PDF exports with red boxes around text areas

    I have a doc, made in FM 7, using version 9
    When I make a PDF i get boxes around some of the text. It wasn't there during FM design.
    example
    (see red)
    Please help

    AxialInfo wrote:
    you might consider saving the FM file as MIF and then looking at the MIF using the wonderful freebie MIFBrowser, from Graham Wideman, from here:
    Wideman Adobe FrameMaker Topics
    to find the problem area do a search for the string that is in the title
    "Downblast Centrifugal
    Exhaust Ventilator
    Roof Mounted
    Belt Drive"
    although just pasting it here it looks like you might have soft carriage returns in it which will make it necessary to just search for the two-word segments.
    After you find the phrase, use the left navigation area to walk "up" the MIF file, looking for the specific structure that those words are in (is it a text box, or rather a graphic frame inside a text box, correct?) Is this an anchored frame, or is it just floating? If it's anchored, where is it anchored?
    In the MIF, see if you can identify any odd sounding properties of the text box or graphic frame. The MIF reference manual is a PDF found in the FM documentation folder.
    Also, one other possibility is that there's something funky with the red swash that goes across the page that's somehow "contaminating" the text frame. What kind of graphic type is the red swash? Could you take a copy of the FM file and remove the swash and then make a PDF, to see if that solves the red outline.
    edit: additional questions: are the swash and the text frame on the body page or on the master page? When Arnis suggested checking for graphics behind the text frame, did you also check the master page(s) as well as the body pages?
    Sheila
    I tried the program:
    <TextFlow
    <Notes
    > # end of Notes
    <Para
      <Unique 1291794>
      <Pgf
       <PgfTag `Body'>
       <PgfUseNextTag No>
       <PgfNextTag `'>
       <PgfAlignment Right>
       <PgfFIndent  0.0">
       <PgfLIndent  0.0">
       <PgfRIndent  0.0">
       <PgfFIndentRelative No>
       <PgfFIndentOffset  0.0">
       <PgfTopSeparator `'>
       <PgfTopSepAtIndent No>
       <PgfTopSepOffset  0.0">
       <PgfBotSeparator `'>
       <PgfBotSepAtIndent No>
       <PgfBotSepOffset  0.0">
       <PgfPlacement Anywhere>
       <PgfPlacementStyle Normal>
       <PgfRunInDefaultPunct `. '>
       <PgfSpBefore  0.0 pt>
       <PgfSpAfter  0.0 pt>
       <PgfWithPrev No>
       <PgfWithNext No>
       <PgfBlockSize 1>
       <PgfFont
        <FTag `'>
        <FPlatformName `W.Arial.R.700'>
        <FFamily `Arial'>
        <FVar `Regular'>
        <FWeight `Bold'>
        <FAngle `Regular'>
        <FEncoding `FrameRoman'>
        <FSize  14.0 pt>
        <FUnderlining FNoUnderlining>
        <FOverline No>
        <FStrike No>
        <FChangeBar No>
        <FOutline No>
        <FShadow No>
        <FPairKern Yes>
        <FTsume No>
        <FCase FAsTyped>
        <FPosition FNormal>
        <FDX  0.0%>
        <FDY  0.0%>
        <FDW  0.0%>
        <FStretch  100.0%>
        <FLanguage USEnglish>
        <FLocked No>
        <FSeparation 0>
        <FColor `Black'>
       > # end of PgfFont
       <PgfLineSpacing Fixed>
       <PgfLeading  3.0 pt>
       <PgfAutoNum No>
       <PgfNumTabs 0>
       <PgfHyphenate Yes>
       <HyphenMaxLines 2>
       <HyphenMinPrefix 3>
       <HyphenMinSuffix 3>
       <HyphenMinWord 5>
       <PgfLetterSpace No>
       <PgfMinWordSpace 90>
       <PgfOptWordSpace 100>
       <PgfMaxWordSpace 110>
       <PgfMinJRomanLetterSpace 0>
       <PgfOptJRomanLetterSpace 25>
       <PgfMaxJRomanLetterSpace 50>
       <PgfMinJLetterSpace 0>
       <PgfOptJLetterSpace 0>
       <PgfMaxJLetterSpace 10>
       <PgfYakumonoType Floating>
       <PgfAcrobatLevel 0>
       <PgfPDFStructureLevel 5>
       <PgfLanguage USEnglish>
       <PgfCellAlignment Top>
       <PgfCellMargins  0.0 pt 0.0 pt 0.0 pt 0.0 pt>
       <PgfCellLMarginFixed No>
       <PgfCellTMarginFixed No>
       <PgfCellRMarginFixed No>
       <PgfCellBMarginFixed No>
       <PgfLocked No>
      > # end of Pgf
      <ParaLine
       <TextRectID 119>
       <String `Downblast Centrifugal'>
      > # end of ParaLine
    > # end of Para
    <Para
      <Unique 1291795>
      <PgfTag `Body'>
      <Pgf
       <PgfAlignment Right>
       <PgfFont
        <FTag `'>
        <FPlatformName `W.Arial.R.700'>
        <FFamily `Arial'>
        <FVar `Regular'>
        <FWeight `Bold'>
        <FAngle `Regular'>
        <FEncoding `FrameRoman'>
        <FSize  14.0 pt>
        <FUnderlining FNoUnderlining>
        <FOverline No>
        <FStrike No>
        <FChangeBar No>
        <FOutline No>
        <FShadow No>
        <FPairKern Yes>
        <FTsume No>
        <FCase FAsTyped>
        <FPosition FNormal>
        <FDX  0.0%>
        <FDY  0.0%>
        <FDW  0.0%>
        <FStretch  100.0%>
        <FLanguage USEnglish>
        <FLocked No>
        <FSeparation 0>
        <FColor `Black'>
       > # end of PgfFont
       <PgfLeading  3.0 pt>
      > # end of Pgf
      <ParaLine
       <String `Exhaust Ventilator'>
      > # end of ParaLine
    > # end of Para
    <Para
      <Unique 1291796>
      <PgfTag `Body'>
      <Pgf
       <PgfAlignment Right>
       <PgfFont
        <FTag `'>
        <FPlatformName `W.Arial.R.700'>
        <FFamily `Arial'>
        <FVar `Regular'>
        <FWeight `Bold'>
        <FAngle `Regular'>
        <FEncoding `FrameRoman'>
        <FSize  14.0 pt>
        <FUnderlining FNoUnderlining>
        <FOverline No>
        <FStrike No>
        <FChangeBar No>
        <FOutline No>
        <FShadow No>
        <FPairKern Yes>
        <FTsume No>
        <FCase FAsTyped>
        <FPosition FNormal>
        <FDX  0.0%>
        <FDY  0.0%>
        <FDW  0.0%>
        <FStretch  100.0%>
        <FLanguage USEnglish>
        <FLocked No>
        <FSeparation 0>
        <FColor `Black'>
       > # end of PgfFont
       <PgfLeading  3.0 pt>
      > # end of Pgf
      <ParaLine
       <String `Roof Mounted'>
      > # end of ParaLine
    > # end of Para
    <Para
      <Unique 1291797>
      <PgfTag `Body'>
      <Pgf
       <PgfAlignment Right>
       <PgfFont
        <FTag `'>
        <FPlatformName `W.Arial.R.700'>
        <FFamily `Arial'>
        <FVar `Regular'>
        <FWeight `Bold'>
        <FAngle `Regular'>
        <FEncoding `FrameRoman'>
        <FSize  14.0 pt>
        <FUnderlining FNoUnderlining>
        <FOverline No>
        <FStrike No>
        <FChangeBar No>
        <FOutline No>
        <FShadow No>
        <FPairKern Yes>
        <FTsume No>
        <FCase FAsTyped>
        <FPosition FNormal>
        <FDX  0.0%>
        <FDY  0.0%>
        <FDW  0.0%>
        <FStretch  100.0%>
        <FLanguage USEnglish>
        <FLocked No>
        <FSeparation 0>
        <FColor `Black'>
       > # end of PgfFont
       <PgfLeading  3.0 pt>
      > # end of Pgf
      <ParaLine
       <String `Belt Drive'>
      > # end of ParaLine
    > # end of Para
    > # end of TextFlow
    I don't see the red in there
    I made another pdf, after deleting the red bar (it's a eps.) and the reb boxes are still there
            I'm not using any master.
    Thanks for the advice anyhow    
    -Matt

  • Error in printing?  White boxes around text?

    Right now I'm experencing a problem with printing in
    Flashpaper. In my company we're converting brochures over into
    Flashpaper as a test. Everything converts over smoothly until we do
    a print test. What we're seeing in our print outputs is any area
    that contains text on top of a image you'll get an white box around
    the text. Although when you view the flashpaper on the monitor you
    don't see that white box around the text. It appears that during
    print process the text fields retain a white box and doesn't set it
    to be transparent.
    Has anyone else encountered this problem? And is there a way
    around this?

    HI
    Did you ever get any clue about this issue? I have the same
    problem or worse.
    If u know anything at all, please visit my post...
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=64&catid=400&threadid =1250227&enterthread=y
    Thanks!

  • Getting rid of a box around text in adobe acrobat pro

    How can I get rid of the box around the 2 items capital outline and  capital case cites

    I don't see properties when I right-click with the box selected. Is there another way to hide this? Thanks

  • How to add full screen text w/out losing audio. I have premier elements 12

    I am creating a language tutorial. Am trying to add full screen text without losing the audio explanation of the text. How do I make this edit and not lose the audio that coincides with the full screen text?

    Roberto
    Thanks for the details.
    Variable - Constant Frame Rate Explanation
    First, the variable frame rate mention and any problems that might be expected if your iPad video was recorded with a variable rather than constant frame rate. Some cameras (such a cell phone, iPod, probably iPad) record video not at one frame rate across the whole video recording. Instead, they record with a variable frame rate depending usually on the lighting conditions during video recording. One way to know what your recording device is using is to view the MediaInfo video audio properties readout. If you have a constant frame rate, you will see just one frame rate listed. If variable, you should see 3 frame rates listed minimum, maximum, and mid range frame rate.
    MediaInfo - Free download and software reviews - CNET Download.com
    This situation may or may not cause problems for you in Premiere Elements. The signs of problems are usually out of sync audio and you just cannot import the video into the project. If this type of problem, then you take your video into a program such as HandBrake to generate a file with a constant rather than variable frame rate. Then you import the file with the constant frame rate into your Premiere Elements project. http://handbrake.fr/
    Again, this may or may not create problems.
    The Generalized Project Workflow
    There is no problem to setup up your Timeline physically. The iPad video with go to Video Track 1 and Audio Track 1. The video is imported into the project linked to it audio portion. And, the Full Screen Text Files will be on Video Track 2 directly above the related content. Now here is the part that I am not yet clear on. Is the Full Screen Text for a given portion of video supposed to synchronize word for word with what you are saying in the audio on Audio Track 1? That will involve a mapping out part with regard to duration of each of the Full Screen Text files. Will these Full Screen Text files be readable against the video representing the background? Font style and size and color will be major considerations as well as getting the text file to be on screen long enough to be readable even with Font style, size, and color considerations.
    The fact that you focus on audio loss in all this makes me wonder if I am missing a vital part of what you want to do. The loss of audio concern that you mention does not seem like a prime factor unless you are referring to sync between the texts and what it is supposed to correspond to in the audio of the video.
    Please review and consider and then, based on your reply, I will offer a mini demo to see if we are OK on the details.
    Thanks.
    ATR

  • How to add document header text area on fb03's selection screen

    hi,
    i want to add an additional area on fb03's selection screen. i need document header text area for my document searchs. is it possible?

    Refer to this thread
    How to Add field to Selection screen of Tx. FBL5N

  • How to add info record text into Schedule agreement

    Dear,
    how can I put the info record text into Schedule Agreement. normally it can contains the short text , but in my company, it needs  some more specific description.so we want to add info record text on it.
    via ME32L ? or ...
    thanks for your kind help
    Meng HM

    Hi,
    In the inforecord trasnaction code ME11,go to  info record text and double click on  'Info record note' -
    Now system will open word document & put whatever text you needed(more) & save.
    With Regards,
    Jaheer

Maybe you are looking for

  • Issue in Extending VO Referring to View Links

    Hi All, I am facing an Issue while extending a VO referring in Table-in-Table Region Style. I am able to Extend the VO, Substitute and JPXImport When I open the page I am getting the below ## Detail 0 ## JBO-30003: The application pool (oracle.apps.c

  • EDGE file will not run correctly in DPS! Any ideas on what I might do?

    I have built an EDGE file to the size of a full page iPad layout (1024 X 768), with a few elements that animate. I have set it up correctly, and, published to "Animate Deployment Package. However, when it plays in DPS, there is a hesitation (or delay

  • A75MA-G55: Lab Burst Mode temp sensor bug

    Me and a friend were on a quest to find the best BLK frequency on stock voltage and finally arrived on 153MHz to be the max possible on stock voltage. We went some benchmarking on 7-zip, GTA4 and wPrime without problems, only we can't measure the cpu

  • Viewing images attached to songs

    Some of my music library have multiple images attached to each song. For example, the latest Nine Inch Nails album "The Slip" has a 'cover' image, plus an image for each track. When viewing tracks on the iPod I can see the cover image on the album br

  • My system preferences will not open!

    i have a Mac Mini and 10.6.8 and my system preferences will not open how do i solve this?