Highlight selected panel

I have implemented an onclick method and added it to an
eventlistener for a Panel in case of a mouseclick. So whenever the
panel is clicked this method is going to be called. Now the
question is that I want to highlight the panel selected, the simple
default way where the selection clicked gets to have blue border
line. Just as if you click a textbox it gets ti have a blue border.
I want to do something similar for a panel.
How could I do something like this for a panel.

"Greg Lafrance" <[email protected]> wrote in
message
news:ga3kio$84h$[email protected]..
> You could change the borderColor if the Panel or any of
its children are
> clicked, but not sure how to change it back if the Panel
or any of its
> children
> lose focus, as the Panel does not support a focusOut
event.
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
> <mx:Script>
> <![CDATA[
> private function onClick():void{
> pnl.setStyle("borderColor", "0x0000FF");
> }
>
> private function mouseOut():void{
> pnl.setStyle("borderColor", "0x000000");
> }
> ]]>
> </mx:Script>
> <mx:Panel id="pnl" width="200" height="200"
borderColor="black"
> click="onClick()" mouseOut="mouseOut()"/>
> </mx:Application>
You could store the panel ID's in an array and set the ones
that are not the
event.currentTarget back to the default.

Similar Messages

  • Sliding Panels - Highlighting selected panel link

    I would like the current/selected sliding panel link to be
    highlighted -- any ideas how to achieve this?

    Take a look at this topic: http://forums.adobe.com/message/2174795#2174795

  • Want to disable display of column values in Selection Panel (11g)

    In 11g, double-clicking on a column from the selection panel (under the Subject Areas heading) adds that column to the analysis. It also "expands" that column so that the first 20 values of that column are visible in the selection panel, immediately under the column that was double-clicked.
    I don't want to see those first 20 values of the column pop up every time I add a column to the analysis by double-clicking. And although dragging the column into the analysis does not cause the popup behavior, dragging is not my team's preferred method of adding the column.
    Is there a way to disable that expansion when double-clicking to add a column to an analysis?
    I suppose it also means that we would be searching for a way to turn off the little plus sign next to each column as well. I don't want to EVER see those values.

    I suppose you might want to know WHY I want this turned off.
    One of my columns in the repository, Region, is defined as a concatenated text string that will be treated as HTML in Analytics. I see this when Region expands in the selection panel:
    <span title="Central: Smith ">Central</span>
    <span title="East: Jones ">East</span>
    <span title="West: Graham ">West</span>When displayed on an analysis, I see Central, East, and West as the regions, as expected. The hover behavior for each region properly shows its title (Region+Manager) as well.
    If the expanded display in the Selection Panel showed Central, East, and West, I wouldn't care. But because it shows the actual text for that column (the HTML string) it's rather confusing to the uninformed. Expanding it to include other tags would make the display almost useless unless you know some HTML. Even then, it's ugly.
    Edited by: Mark T. on Mar 15, 2013 6:13 AM - didn't know I could use the tag                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I need to highlight selected text in a pdf document

    I need to highlight selected text in a pdf document

    Looks like that the document is protected.
    Why did you post this in the forum for Feature Requests?

  • A problem highlighting/selecting text in Illustrator CS3

    In several instances I can't highlight text to copy or to edit, other times it works fine. If I click the radio button for the text in layers (other layers may be locked to prevent accidental selection), the baselines appears and I should be able to highlight the text, but I can't. If I highlight some other unaffected area of text successfully (unlocked layers), sometimes it will allow me to select the problem text directly after. Then it will go back to being a problem, why?

    I'm using the general text tool, I've locked the other sublayers to avoid accidentally selecting those items. Then I click the radio button on the sublayer I wish to edit or copy, which reveals the baselines. Then if I click within that object to highlight text with the cursor, the text tool creates a new textbox/sublayer and does not highlight the text I intended.
    From: Monika Gause <[email protected]<mailto:[email protected]>>
    Reply-To: <[email protected]<mailto:[email protected]>>
    Date: Wed, 26 Oct 2011 14:49:40 -0600
    To: Roger Daleiden <[email protected]<mailto:[email protected]>>
    Subject: A problem highlighting/selecting text in Illustrator CS3
    Re: A problem highlighting/selecting text in Illustrator CS3
    created by Monika Gause<http://forums.adobe.com/people/Monika+Gause> in Illustrator - View the full discussion<http://forums.adobe.com/message/3992086#3992086

  • Highlighting Selected Segments of Video

    How can I mark a segment of video in the timeline that I want to go back to later
    to show someone or to determine if I want to delete it? Is there some way to highlight selected portions of the timeline?
    Thanks.

    you can use markers. if you select a clip just hit M to make a marker, hit M on the frame again then you'll have a prompt where yyou can change the duration of your marker and add notes and stuff. if you hit M without a clip selected in the time line and your timeline is active then you'll create a marker on the timline itself.

  • When I try to cut and paste my resume into an online job website the reume' will not highlight ( select All), any ideas?

    When I try to cut and paste my resume' into an online job website it will not highlight, ( select all), I can click and drag it into the empty box but then it becomes an  attachment. What am I doing wrong?  Help!

    The new iTunes has a somewhat different look from the previous version.  You can get the old look back if you prefer it by doing View > Show Sidebar in iTunes.  Or you can adapt to the new look.

  • Illustrator CS2 doesn't highlight selected items any more

    hello, i use illustrator cs2, and since a few days - without having changed any options - the program doesn't highlight selected items any more. neither does it highlight selected text... so editing items becomes a guessing game which is extremeley annoying... i can't find anything on this in the help file... i hope anybody here can help me!
    thx!

    thanks! that was one quick reply!

  • Change Highlight Selection Color

    The default color when a cell or item is selected is a light cyan. On my computer it is very hard to discern text because the light cyan highlight color and the white text run together. How can I adjust the highlight/selection color so that text is legible?

    The selected item color is actually determined by your OS. To change it in Windows XP:
    Right click on your desktop
    Properties
    Appearance Tab
    Advanced
    Item Drop down: Chose "Selected Items"
    Change the color to whatever you like

  • Printing a Highlighted/Selected part of an internet page

    New to the Mac world.
    I am use to Click and highlighting/Selecting part of a web page, then when printing just pick selected from the print menu.
    I do not see this on the iMac, is there a way for it to be done??
    Thank you for your time.

    This thread has some suggestions:
    http://discussions.apple.com/thread.jspa?messageID=9215046&#9215046
    Hope this helps.

  • When printing a highlighted (selected) print range from an internet item pulled up through Firefox, the first line of the selected range is not printing or is partially cut off.

    When printing a highlighted (selected) print range from an internet item pulled up through Firefox, the first line of the selected range is not printing or is partially cut off. This is not an issue with my printer, as printer prints the whole selected print range when using Internet Explorer or Word Doc applications. The problem only happens when using Firefox. Please advise on how to fix this. Is this a settings issue or do I need to download and update? Thx

    * [[Printing a web page]]
    * [[Firefox prints incorrectly]]
    Check and tell if its working.

  • How do I highlight selected text in the Pages, Keynotes?

    How do I highlight selected text in the Pages, Keynotes?

    To answer your question foor your iOS Device using Pages or Keynote for iOS: You can't highlight as you might in many note taking apps for iPad, etc.
    The best you can do at this point is to change the selected text's color by selecting the text > Style Menu (wrench) > Tap on the Font > Tap on the Color Box to reveal choices.
    If you would like to join the chorus of folks wishing such a feature were in Pages and Keynote, you can leave feedback for the people at Apple:
    http://www.apple.com/feedback/

  • How do i find the last selection OR the highlighted selection?

    When i select some items in indesign i have the option of "command + click" to highlight one of the selections. How would i find that highlighted element in scripting?
    OR
    How would i go about finding the last item selected in indesign.
    I'm trying to write a script that relies on some properties of the highlighted element or the last item selected.
    thanks

    Thanks myDavey. That's not exactly what i was looking for, but it had good information on something else i am working on.
    I found the solution to my problem. That highlighted selection is apparently called the "key object".
    And it can be used in scripting as app.selectionKeyObject. This solved what i was looking for.
    And one can find the last selection by picking the last element in the selection array.

  • Fieldpoint Device Selection panel question...

    When configuring a new Fieldpoint Express IO Point, the Fieldpoint Device Selection panel opens to select the IO point I want to use.
    Under the View Configurations tab, I have created unique names for my different Fieldpoint configurations.  The first configuration in the list is simply called Fieldpoint, and I no longer use it. 
    1. It's Remove and Modify buttons are grayed out.  Is it not possible to remove it?
    2. If I'm using the old style (not express) VI's, like FP Open.vi, FP Creat Tag.vi, FP Read.vi & FP Write.vi, do I really need to create these different configurations?  Does this configuration name get written back to the IAK file I'm using with FP Open.vi?
    (Using Max3.0.2) & LV7.0 under Win2K
    Thanks,
    Mike

    Fieldpoint is the last configuration you saved in MAX and probably cannot be removed.
    I don't know whether the names are saved in the iak file (I don't think they do) but you probably don't want to use the old VIs because they're legacy VIs and will probably not be supported at some point. If you want to dynamically build channel names you can do so by concatenating strings and using the strings as FP I/O points.
    Try to take over the world!

  • Answer - Suject Area - Selection Panel - Columns not shown

    Hello expert,
    I have created the physical tables, created the Business Model and Fields Mapping, drag the logical tables to the presentation layer. The consistency check is good. However when I start the Presentation Services -> go to Answer -> Select the subject area. However, I am unable to create the report because no columns are shown under the logical tables. Anyone knows why? I have deleted all the temp internet files before start the browser.
    Thanks,
    Wes

    Hello expert,
    Strange. The columns show under the table on the Selection Panel in Subject Area this morning. I'm not sure that whether it is on-line or off-line problem. It appears to be. This morning I just open the rpd on-line and drag the tables to the presentation layer. Then activate the presentation services on my PC, the columns show.
    Thanks.....

Maybe you are looking for