Change the highlight color for text in Spark TextInput

Hello

As the title says, someone knows how to change the highlight color in a TextInput spark? By the "highlight color" I mean that some of the text is selected if the background color of the selected text.

Thank you.

SetStyle ("focusedTextSelectionColor",...)

There are also unfocusedTextSelectionColor and inactiveTextSelectionColor

styles.

Tags: Flex

Similar Questions

  • How to change the highlight color for text

    I am trying to select and highlight some text in the PDF file. Here is my sample code. I want to change the color of the highlighted text. Something similar to what the tool select text in acrobat.

    Hilite HiliteEntry;

    Hilite.Offset = 10;  Highlight the tenth Word

    AVDoc currentAVDoc = AVAppGetActiveDoc();

    CurrentPDDoc PDDoc = AVDocGetPDDoc (currentAVDoc);

    AVPageView currentPageView = AVDocGetPageView (currentAVDoc);

    ASInt32 pageNum = AVPageViewGetPageNum (currentPageView);

    Red PDColorValueRec;

    Red.Space = PDDeviceRGB;

    Red.Value [0] = ASInt32ToFixed (1);

    Red.Value [1] = 0;

    Red.Value [2] = 0;

    Highlight

    AVPageViewSetColor (currentPageView, & red);

    PDPage pdPage = PDDocAcquirePage (currentPDDoc, pageNum);

    PDTextSelect textSelection = PDTextSelectCreateWordHilite (pdPage, & hilite, 1);

    AVDocSetSelection (currentAVDoc, ASAtomFromString ("Text"),(void *) textSelection, true);

    AVPageViewDrawNow (currentPageView);

    AVDocShowSelection (currentAVDoc);

    PDPageRelease (pdPage);

    If this is not possible, at least can I change the font color or underline text?

    Appreciate any help!

    Thanks a lot for the help so far. So, I was successfully able to create a text selection highlight annotation. Here is my code, if someone else have similar questions.

    More a question. in my highlight annotation, I get two rounded half-circles to the left and the right. Don't know why?

    Hilite HiliteEntry;
    Hilite.Offset = 50; Highlight the 50th start of word
    AVDoc currentAVDoc = AVAppGetActiveDoc();
    CurrentPDDoc PDDoc = AVDocGetPDDoc (currentAVDoc);
    AVPageView currentPageView = AVDocGetPageView (currentAVDoc);
    ASInt32 pageNum = AVPageViewGetPageNum (currentPageView);
    PDEElement pdeElement;
    ASFixedRect boundingRect.
    PDPage pdPage = PDDocAcquirePage (currentPDDoc, pageNum);
    PDAnnot pdAnnot.
    Red PDColorValueRec;
    Red.Space = PDDeviceRGB;
    Red.Value [0] = ASInt32ToFixed (1);
    Red.Value [1] = 0;
    Red.Value [2] = 0;
    Highlight
    AVPageViewSetColor(currentPageView, &red);)
    PDTextSelect textSelection = PDTextSelectCreateWordHilite (pdPage, & hilite, 1);
    AVDocSetSelection (currentAVDoc, ASAtomFromString ("Text"),(void *) textSelection, true);
    AVPageViewDrawNow (currentPageView);
    AVDocShowSelection (currentAVDoc);
    make the selection of text and get the bbox of the selection.
    PDTextSelect selectedText = static_cast(AVDocGetSelection (currentAVDoc));
    PDTextSelectGetBoundingRect (selectedText, & boundingRect);
    the bbox allows to create an annotation, click QuadPoints
    CosObj ArrayObj, RecObj;
    CosDoc cd = PDDocGetCosDoc (currentPDDoc);
    CosObj cosPage = PDPageGetCosObj (pdPage);
    ArrayObj = CosNewArray (cd, false, 8);
    CosArrayPut (ArrayObj, 0, CosNewFixed (cd, false, boundingRect.right));
    CosArrayPut (ArrayObj, 1, CosNewFixed (cd, false, boundingRect.bottom));
    CosArrayPut (ArrayObj, 2, CosNewFixed (cd, false, boundingRect.left));
    CosArrayPut (ArrayObj, 3, CosNewFixed (cd, false, boundingRect.bottom));
    CosArrayPut (ArrayObj, 4, CosNewFixed (cd, false, boundingRect.right));
    CosArrayPut (ArrayObj, 5, CosNewFixed (cd, false, boundingRect.top));
    CosArrayPut (ArrayObj, 6, CosNewFixed (cd, false, boundingRect.left));
    CosArrayPut (ArrayObj, 7, CosNewFixed (cd, false, boundingRect.top));
    for the Rect.
    . Do not require highlight annotations, but API call to create the annotation requires this key RecObj = CosNewArray (cd, false, 4); CosArrayPut (RecObj, 0, CosNewFixed (cd, false, boundingRect.left)); CosArrayPut (RecObj, 1, CosNewFixed (cd, false, boundingRect.right)); CosArrayPut (RecObj, 2, CosNewFixed (cd, false, boundingRect.bottom)); CosArrayPut (RecObj, 3, CosNewFixed (cd, false, boundingRect.top));
    CosObj cosDict = CosNewDict (cd, true, 4);
    CosDictPutKeyString (cosDict, "Subtype", CosNewNameFromString (cd, false, "Highlight"));
    CosDictPutKeyString (cosDict, "QuadPoints", ArrayObj);
    CosDictPutKeyString (cosDict, 'Rect', RecObj);
    pdAnnot = PDAnnotFromCosObj (cosDict);
    PDPageAddAnnot(pdPage,-2,pdAnnot);
    PDPageNotifyContentsDidChange (pdPage);
    PDAnnotSetColor(pdAnnot, &red);)
    AVPageViewDrawNow (currentPageView);
    PDPageRelease (pdPage);
  • How to change the highlight color for windows 7 (select the file or folder)?

    How to change the highlight color for windows 7 in the aero theme (select the file or folder)?

    You can change the font size because it is not a widget.   To do this:

    1 type dpi in your Start menu search box, and then choose make text and other more or less important.
    2 - Choose a size you prefer
    3 - Click on apply.
  • How you change the highlight color for the active layer in the layers panel?

    How can you change the highlight color for the active layer in the layers panel BY 9?

    Do you mean you want something other than the darker gray (windows) or blue (mac)? Sorry, no can do, if that's what you hear.

  • How can I change the highlight color for my PDF file?

    On my PDF files, I am able to highlight text, but does not know how to change the color of the highlight.  I got Adobe Reader and also paid upgrade - but honestly, I don't know what program I have.  This is more confusing application, that I have ever used!

    Hi vickis,.

    You may need to go to the comment pane and right-click on the annotation "Highlight text" and choose "Properties of the tool by default".

    The highlighter tool properties dialog box opens from which you can change the highlight color.

    Kind regards

    Ana Maria

  • How to change the highlight color for the bookmark icon?

    Could someone help with this question? See the attachment for clarification. Our company creates thousands of medical documents that require bookmarks to navigate documents and show where the spectator is when you scroll the document. It sounds simple, but in my opinion, there is not a function to help change the game of bookmark highlight colors. Suggestions anyone? Thank you.

    Right-click on a climax. Select properties from the menu drop down. Change the color, and then click the checkbox to make these properties by default.

  • version of Acrobat reader dc 2015: how to change the highlight color?

    How to change the color of highlight (in dc 2015 of adobe acrobat reader version)?

    Hi Herwig,

    Highlight Select tool, press CTRL + E, Properties window will open, you can change the highlight color for here.

    Kind regards
    Rahul

  • How to change the highlight color, click the button image and text and sound.  are there packages of buttons for use in my project?

    How to change the highlight color, click the button image and text and sound. are there packages of buttons for use in my project?

    Hello

    Even if the point of things based Web links buttons created using them is of simple images. Captivate uses simple images. If you need to put your creative hat and not to let the fact that you see the word 'web' scared you somehow. An image is an image. Use on the web, use Captivate. Same case!

    If you change the properties of the button, you can activate the legend of success. Fix any sound that you like with the legend of success and it will play when you click the button. If you do not want to see the legend of success, delete the text and configure it as transparent.

    See you soon... Rick

    Useful and practical links

  • How to change the background color for the text TreeField?

    Hello

    I call graphics.setBackgroundColor () of in the drawTreeItem() method, but it does not affect the background color of the graphics.drawText () method. Any ideas on how I can change the background color of text?

    Thank you

    I got this works using Graphics.drawFilledPath () to draw in a rectangle of background color before drawing the text.

  • How to change the highlight color 'find '.

    I use Dreamweaver CS4 and when I use the 'Search' function to search for something in the source code it highlights the text found with a very light gray background (background color for source code is white).  Is it possible to change the highlight color gray to something else that I often struggle to locate in the source code window, which has been found.  I would like to make a lighter color is no longer perceptible.  I searched through all of the preference settings and can't seem to find a setting for this.  Is this one?

    Thanks for the help!

    Tom

    I'm sorry, I think that you post in the wrong forum.

    The issue in this case relates to the color used by Dreamweaver to highlight the code after using the built in find & replace tool.

    In Dreamweaver CC 2015, the code highlighting color is editable by the user under Edit > Preferences > Code coloring > background selection

  • Change the highlight color when you select files or folders

    Hello
    Need assistance to change the highlight color when you select files or folders in Windows Explorer / my document.
    I use Windows Vista with SP2.  I tried to go to control-online personalization panel => color & appearance of the window and changing the settings.  However, I can't change the intensity of the highlights that I see it clearly.  A little blind colours, I would like to change the color to make it darker so that I could clearly see when an item is selected.
    I tried open classic appearance for color options properties more-online advance but did not find an appropriate under "Item" option that I could change.  I tried the step "Selected items" under ' point:' but that only applies when I double click on a file or folder.
    Any advice would be greatly appreciated.
    The

    Salvation of

    Sorry to hear that the option is good enough for you.  I've done some research more and that you still do not see a way to change what you're asking.  As I said before, others have mentioned this issue as well.  If I come across a way to do it, I'll post it here.

    In the meantime, I'm going to Mark this post as answer whose answer is:

    Currently, there is no way to make this change in Windows Vista.

    Thanks for posting on Microsoft Answers.
    Ken
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I change the background color for the bar 'help file edit view history bookmark tools' in Firefox 29,0

    How can I change the background color for the bar 'help file edit view history bookmark tools' in Firefox 29,0

    You can add a theme of solid color to change the color of the top of the browser window, which contains the Menu bar.

    https://addons.Mozilla.org/en-us/Firefox/themes/solid

  • Change the background color for a selected item in a ListView?

    Hello

    No idea how to change the color of tbackground of a ListView selected item to blue for a different color?

    I tried wrapping the ListView in a container, then by changing the background color of the container, but it does not work. And ListView, nor the ListItemComponent takes a background attribute.

    Thank you

    Oh, I did that last night.
    Thus, in the container for StandardItem, add this line:

     background: ListItem.selected || ListItem.active ? Color.create("#4D9EC9") : Color.Transparent
    

    and onTriggerred of the signal, add two lines:

    // for highlighting
    listView.select(indexPath, true);
    
    // for clearing highlight
    listView.clearSelection();
    

    PS: listView is the id of the ListView

    ListView {
        id: listView
    ....
    
  • Change the background color for amx-commandButtons

    I can't change the background color of amx-commandButton... even the css change... background still shows gray

    {.amx-commandButton

    position: relative;

    background-color: white;

    border-radius: 3px;

    white-space: pre wrap.

    -webkit-box-pack: center;

    content justify: Center;

    border: 1px solid #0572CE;

    }

    ..Screenshot_2015-08-06-17-06-28.png

    Ben.90, try adding a background picture: none for your css definition. Gray is a background image degraded in the skin of mobileAlta.

    The best way to debug and difficulty css - http://www.ateam-oracle.com/debugging-maf-applications-on-android/

  • is it possible to change the blue color for the selected items in the selection list?

    is it possible to change the blue color of the selected items in a list select multi?

    Hello

    I don't think there are beacons of style that would allow you to change the colors highlighted. As you say it is determined by the operating system settings.

    You could look here, it can give you assistance.

    http://www.hedgerwow.com/360/DHTML/ui_input_listbox/demo.php

    Concerning

    Paul

    Published by: pjturley on June 29, 2009 14:53

Maybe you are looking for