How to get rid of a thin gray border of SkinnableContainer in design mode

I'm learning skinning techniques for flex 4 and spark. For an example project I've created custom component derived from SkinnableContainer. It is simple container with surrounding frame and a title.
Everything works just fine when I run test project with a component on it. But at design time my component's border is not visible - it is covered with a thin gray border.
Disadvantages of this behavior is that developer using the component can not see some changes made at design time (e.g. border color).
I've searched through SkinnableContainer's code, but I couldn't find if the thin gray border is drawn by this class.
see illustration
My component's code:
package dtg.components
    import dtg.skins.BorderContainerWithTitleSkin;
    import spark.components.SkinnableContainer;
    public class BorderContainerWithTitle extends SkinnableContainer
        [SkinPart]
        public var title:Label;
        private var _text:String;
        public function BorderContainerWithTitle()
            super();
            setStyle("skinClass", dtg.skins.BorderContainerWithTitleSkin);
        [Inspectable(category="Common",name="Group_Title",type="String",defaultValue="Data Group")]
        public function get groupTitle():String
            return _text;
        public function set groupTitle(text:String):void
            if (_text != text)
                _text = text;
                if (title != null)
                    title.text = _text;
        [Bindable]
        [Inspectable(category="Common", type="Color",format="Color")]
        public var lineColor:uint;
        [Bindable]
        [Inspectable(category="Common", type="Color",format="Color")]
        public var textColor:uint;
        override protected function partAdded(partName:String, instance:Object):void
            super.partAdded(partName, instance);
            if (partName == "title")
                (instance as Label).text = _text;
        override protected function partRemoved(partName:String, instance:Object):void
            super.partRemoved(partName, instance);
and skin:
<?xml version="1.0" encoding="utf-8"?>
<!--- The default skin class for a Spark SkinnableContainer container. 
     @see spark.components.SkinnableContainer
      @langversion 3.0
      @playerversion Flash 10
      @playerversion AIR 1.5
      @productversion Flex 4
-->
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled="0.5"
    creationComplete="skin1_creationCompleteHandler(event)" xmlns:local="*" xmlns:components="dtg.components.*"
    >
    <fx:Metadata>[HostComponent("dtg.components.BorderContainerWithTitle")]</fx:Metadata>
    <fx:Script fb:purpose="styling">
        <![CDATA[        
            import mx.states.OverrideBase;
             *  @private
            /* Define the skin elements that should not be colorized. */
            static private const exclusions:Array = ["background", "title"];       
             * @private
            override public function get colorizeExclusions():Array {return exclusions;}           
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
                // Push backgroundColor and backgroundAlpha directly.
                // Handle undefined backgroundColor by hiding the background object.
                if (isNaN(getStyle("backgroundColor")))
                    background.visible = false;
                else
                    background.visible = true;
                    background.left = background.top = background.right = background.bottom = 1;
                    bgFill.color = getStyle("backgroundColor");
                    bgFill.alpha = getStyle("backgroundAlpha");
                super.updateDisplayList(unscaledWidth, unscaledHeight);
        ]]>       
    </fx:Script>
    <fx:Script>
        <![CDATA[
            import mx.events.FlexEvent;        
            [Bindable]
            private var _bMargin:uint;
            [Bindable]
            private var _titleWidth:uint;          
            protected function skin1_creationCompleteHandler(event:FlexEvent):void
                _titleWidth = title.width;
                _bMargin = title.height/2;
                title.addEventListener(Event.CHANGE, onTitleChange);
            protected function updateLayout():void
                var tlm:TextLineMetrics = title.measureText(title.text);
                _titleWidth = tlm.width;
                _bMargin = (tlm.ascent)/2;
            protected function onTitleChange(e:Event):void
                updateLayout();
        ]]>
    </fx:Script>
    <fx:Declarations>
        <s:SolidColorStroke id="lineStroke" weight="1" color="{hostComponent.lineColor}" alpha="1.0"/>
    </fx:Declarations>
    <s:states>
        <s:State name="normal"/>
        <s:State name="disabled" />
    </s:states>
    <!--- Defines the appearance of the SkinnableContainer class's background. -->
    <s:Rect id="background" left="1" right="1" top="1" bottom="1">
        <s:fill>
            <!--- @private -->
            <s:SolidColor id="bgFill"/>
        </s:fill>
    </s:Rect>
    <!--
    Note: setting the minimum size to 0 here so that changes to the host component's
    size will not be thwarted by this skin part's minimum size.   This is a compromise,
    more about it here: http://bugs.adobe.com/jira/browse/SDK-21143
    -->
    <!--- @copy spark.components.SkinnableContainer#contentGroup -->
    <s:Group id="contentGroup" left="1" right="1" top="1" bottom="1" minWidth="0" minHeight="0">
    </s:Group> 
    <s:Label id="title"
                 left="{_bMargin*2}"
                 top="{-_bMargin}"
                 color="{hostComponent.textColor}"
                 />    
    <!--Top left line-->
    <s:Line xFrom="0" yFrom="0" xTo="{_bMargin}" yTo="0" stroke="{lineStroke}"/>
    <!--Top rigth line-->
    <s:Line xFrom="{_titleWidth + _bMargin*3}" yFrom="0" xTo="{width-1}" yTo="0" stroke="{lineStroke}"/>
    <!--Rigth line-->
    <s:Line xFrom="{width-1}" yFrom="0" xTo="{width-1}" yTo="{height-1}" stroke="{lineStroke}"/>
    <!--Bottom line-->
    <s:Line xFrom="{width-1}" yFrom="{height-1}" xTo="0" yTo="{height-1}" stroke="{lineStroke}"/>
    <!--Left line-->
    <s:Line xFrom="0" yFrom="{height-1}" xTo="0" yTo="0" stroke="{lineStroke}"/>
</s:SparkSkin>

This appears to be a Flex question. Please try the Flex forums here
http://forums.adobe.com/community/flex/flex_general_discussion.

Similar Messages

  • How to get rid of the dotted line border?

    I have created an interactive pdf in InDesign (v9.1) containing a series of buttons.  When the file is exported to Accobat Pro (v11.0.04) all the buttons have a dotted line border when they are clicked.  How do I get rid of the border?

    Sortedmy own proble!.  Go to preferences, forms, & uncheck 'focus rectangle'

  • I have very thin, colored lines running vertical on my desktop monitor screen.  I don't know where they come from or how to get rid of them.  I started with one and now have three.  Can anyone give me some insight about what to do in getting rid of them?

    I have very thin, colored lines that have shown up on my IMac monitor screen.  I don't know where they came from or how to get rid of them.  I'm concerned now because I started with one and now have three.  Does any know why this occurs or how to get rid of them?

    I got an address from Applecare, although I can't place my hand on it right now. I didn't bother persuing the letter route myself as I didn't expect much. I know that the location was Cork, Ireland though as that where the UK Applecare is based as far as I'm aware. The best thing to do is to call Applecare (if it's free) and discuss the issue. State that you are not happy wit the fact that you will have to pay to have the problem resolved especiiay if it is an ongoing problem that has not been resolved. I ended up speaking to a senior manager of the Applecare team who then proceeded to tell me about mailing in my grievence to customer services division or something like that.
    If I can find the address I may post it if I'm allowed.
    In the case of age, Schools usually have a 5-year life-cycle as they tend to be used differently than consumer machines, i.e. being used constantly on a daily basis for at least 12 hours with no break. you would expect issues to appear after a few years, but I expect problems that arise through defects to be resolved and stay resolved. As I mentioned we had machines for around 2 years before the lines appeared and sent them to be repaired. I'm happy with that. What I am unhappy about is the fact that the problem has reappeared exactly in the same way and now I'm left with around 7 machines that I either pay loads to repair or, the more likely replace the machines with newer ones since the age is now big enough to warrant the replacement.
    Sorry for the lengthy moan, but these are the reasons I purchased Apple ahrdware in the first place to avoid the "not our problem" stance some PC vendors  usually take, similar to the Dell monitors thread mentioned in here somewhere.

  • I tried creating a new folder and quickly moving Newsstand into it, but Newsstand is grayed out, and could not be moved. Any other ideas how to get rid of it?

    I tried creating a new folder and quickly move Newsstand into it, but it is grayed out and cannot be moved. Any other ideas how to get rid of it?

    You cannot

  • There is suddenly a gray shelf under the app icons in dock. does anyone know how to get rid of this?

    there is suddenly a gray shelf under the app icons in dock. does anyone know how to get rid of this?

    Take a look at the various suggestions in 'More like this'  >>>>>>>> to the right of your original post.   And don't forget the links within the threads.   Several people have had that problem.

  • How to get rid of the black border around the artboard

    Hopefully my last question for tonight.
    I need to get rid of the black border around the artboard. The two images show my drawing lined up with the art board and then inside the artboard. The dark gray is not the artboard.
    As you see, the artboard has a black border. I need to get rid of it. It shows up in my project when my color key is green. The black won't go to transparent.
    So how-to get rid of the border? Thanks
    ***Update***
    I figured it out. View > Hide Artboards. Maybe this will help someone. Doesn't change the fact my spider looks like a tick:)

    Doesn't change the fact my spider looks like a tick:)
    Try to get hold of a real spider and take a look at its anatomy, specially where the legs sprout from :-)

  • How to get rid of freeform input layer

    Hey。Somehow i have started getting a gray layer for drawing letters every time i have a text input field。i dont know how to get rid of it permanently。also i can no longer hold down a letter to get a capital letter and the autocorrect doesnt work。help!justin

    how annoying is it to go to a seperate screen set and then click a midi region just to edit it?
    You haven't grasped the concept of screensets.
    In the "old" way of working, in your arrange, you double-click on a region, which opens that region in an editor. You may have to move the editor position/size etc. You make your edits, and then close the window.
    The screenset way of doing this is simpler and quicker. In your arrange, you select your region (one click, rather than a double click). You then hit a key command, lets' say "2" to switch to your editor screenset, which has the eitor or combination of editors you use, in link mode. As soon as you hit your 2 key, the editors will be recalled at the precise locations you specified, showing you the contents of your selected region.
    When you are finished editing, just hit "1" to go back to your main arrange window.
    Once you get used to this, you'll find it's a lot quicker and more efficient than all that rsi double clicking and window closing...

  • How to get rid of adware/spyware?

    My computer is running very slow.  I believe I may have been infected with adware/spyware and unsure how to get rid of it.

    Hi, first try this...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    Then...
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    Also...
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed. Or an errant process eating up RAM.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • I cant update nor download any applications. My password was always invalid. And other username is prompted richardca0521@yahoo.ca which is not my account. How to get rid of this apple id and use my account for download? I have registered this to itunes.

    I can't update nor download any apps in itunes. Prompted invalid password, upon checking the apple id was not mine. The id was [email protected] whic is not mine. Pls. Help how to get rid of this. Thank you.

    try and delete the apps and re-add them

  • I have a new iPhone 5S.  While trying to learn about it, I accidentally recorded a voice memo with no content.  I cannot now figure out how to get rid of it.  There is a banner across the top of my phone with this memo which I don't want.  Help!

    I have a new iPhone 5S.  While trying to learn about it, I accidentally recorded a voice memo with no content.  I cannot now figure out how to get rid of it.  There is a banner across the top of my phone with this memo which I don't want.  I have deleted it from iTunes but cannot get it off the phone.  Help!

    The banner usually indicates that the memo is "Paused." If you go back into voice memos, touch the word "Done" beside the big red pause button, give it a name, then it will show in a list. Touch the memo in the list then touch the trash can icon that should appear.

  • How to get rid of Safari !!!!!

    I must have missed the message to install Safari during one of the many iTunes updates and now I'm stuck with it on my computer taking up 60GB of space! I've tried removing it through Control Panel -> Uninstall Programs, but get the message that I don't have administrator privilages - which I do. Thinking I may have had this installed while I was logged in under my main administrator name, I logged off and logged back in under my only other user name and tried again - same message. So I went to the Safari folder and changed all security privilages to full access for both accounts and it still won't uninstall. How can this program claim I don't have administrator privilages when I used the only two user accounts on my computer?? So in a fit of defiance and desperation, I deleted the Safari folder and then ran the name "safari" in Vista's search box under the Start menu (I even included the wildcard .* to catch all examples). Guess what? Rather than find all traces of safari on my computer so I could delete them manually, Safari started running again!! I cancelled the program before it finished loading and went to recheck the Program Files folder and Safari was back there with a full 60GB of files again! I CAN'T GET RID OF IT!!
    Safari is a malicious software program as bad as any Malware or Adware I have ever seen! How can I get rid of it??
    (and no, I really do not want Safari - I don't care if you think its the greatest thing since sliced bread - I make the choices on my computer, not some software engineer or marketing division and I DON'T WANT SAFARI!!)
    Any suggestions on how to get rid of it? Did I miss something?
    Thanks all,
    LH

    The Safari update is not clear what it is and provided no explanation of what it was - it simply states "Safari". For all I know it could have been an indexing file for iTunes. There was no explanation as to what is was and the install checkbox was already checked so the unsuspecting may quickly and accidentaly hit install along with the iTunes update, thinking it was a required part of iTunes. Regardless of how it got there, I'm trying to get rid of it and it won't uninstall.
    Now you may fancy yourself as some kind of wunderkind software expert, but you apparently do not know Vista because it really does take up 60 GB and every time I delete it, it tries to reinstall itself. These are not multiple installations and I am the only user on this computer. You haven't offered me any help - only insults. If you aren't willing or able to offer help or assistance in the most sincerest form this request was intended, than stay out of this thread. Your actions and insults reinforce the prevailing belief that Apple users are unkind, rude, self-important snobs.

  • HT5622 how to get rid of an old apple ID on my iphone 5 . the ID belongs to a store where I bought my phone ,and it's in a different country ??

    How to get rid of an old Apple ID on my iphone 5 ? The ID belongs to a store I bought my iphone from ,and it's in another country.

    You can't.  That's the new security feature of iOS7 that users (and others) requested to prevent stolen devices from being restored by theives and reused.  Contact the "store" you purchased your phone from and see what they say.

  • When I try to buy something, I get an Apple-ID which is not the one I want to use, and I don't know how to get rid of it either, so that I can use my ID, which is in Mail, Contacts etc. The ID I get, I can't find, so that I can delete it. What to do?

    When I try to buy something, I get an Apple-ID which is not the one I want to use, and I don't know how to get rid of it either, so that I can replace it with my ID in Mail, contacts etc. The ID I get without wanting it, I can't find anywhere. I have to delete it. How do I solve this problem, anyone?

    My content was obtained through another ID, which popped up earlier. Now this one doesn't pop up, and my current ID doesn't pop up either, but another one. How do you find an ID which is not in the store, and not in Mail, contacts etc. either?
    Or is it possible to write the ID yourself when you want to buy something, not only to have it popped up being unable to be changed?

  • How to get rid of automatically created server accounts in iCal and Mail?

    I have recently setup an OS X 10.6.2 Server for our small office. I got the domain name wrong in the initial install and fixed this by doing a complete clean reinstall of OS X 10.6 server (then upgrade to 10.6.2).
    The problem is that one of the OS X 10.6.2 clients had been setup to talk to the server prior to the rebuild. Now on this client, I cannot work out how to get rid of or change the automatically created server accounts in iCal and Mail - everytime you login, these are recreated using the old domain name (and of course don't work).
    In Mail if you remove the server account (from Accounts in Preferences), it just pops back again. I even removed every trace of the old domain name from the apple.com.mail.plist file but when I re-open Mail that darned server account (with the old domain name) just pops up again.
    In iCal its slightly different in that you can remove the account and it stays away while you have iCal open. But as soon as you close and re-open it, that server account just pops up again!
    I thought it might be something to do with Kerberos and found a Kerberos file on the client which had the old domain name throughout it - I changed all these references to the new domain name, but still the same behaviour in Mail and iCal.
    This is doing my head in. Any ideas?
    Message was edited by: davidav

    I suggest you ask in the snow leopard server forum
    http://discussions.apple.com/category.jspa?categoryID=264

  • I've got OSX/Genieo.A virus on my mac and don't know how to get rid of it and why I have it

    I've got OSX/Genieo.A virus on my mac and don't know how to get rid of it and w I have it

    There is no need to download anything to solve this problem.
    You installed the "Genieo" malware. The product is a fraud, and the developer knowingly distributes an uninstaller that doesn't work. I suggest the procedure below to disable Genieo. This procedure may leave a few small files behind, but it will permanently deactivate the malware (as long as you never reinstall it.)
    Malware is always changing to get around the defenses against it. These instructions are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Step 1
    Triple-click anywhere in the line below on this page to select it:
    /Library/Frameworks/GenieoExtra.framework
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.
    If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder should open with an item named "GenieoExtra.framework" selected. Move that item to the Trash. You'll be prompted for your administrator password.
    Move each of these items to the Trash in the same way:
    /Applications/Genieo.app
    /Applications/Reset Search.app
    /Applications/Uninstall Genieo.app
    /Library/LaunchAgents/com.genieo.completer.update.plist
    /Library/LaunchAgents/com.genieo.engine.plist
    /Library/LaunchAgents/com.genieoinnovation.macextension.plist
    /Library/LaunchDaemons/com.genieoinnovation.macextension.client.plist
    /Library/PrivilegedHelperTools/com.genieoinnovation.macextension.client
    /usr/lib/libgenkit.dylib
    /usr/lib/libgenkitsa.dylib
    /usr/lib/libimckit.dylib
    /usr/lib/libimckitsa.dylib
    ~/Library/Application Support/com.genieoinnovation.Installer
    ~/Library/LaunchAgents/com.genieo.completer.download.plist
    ~/Library/LaunchAgents/com.genieo.completer.update.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those listed above, move them as well. Some of these items will be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    Restart and empty the Trash. Don't try to empty the Trash until you have restarted.
    Step 2
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including ones called "Genieo" or "Omnibar," and any that have the word "Spigot" or "InstallMac" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Your web browser(s) should now be working, and you should be able to reset the home page and search engine. If not, stop here and post your results.
    Make sure you don't repeat the mistake that led you to install this trojan. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad has a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If youever download a file that isn't obviously what you expected, delete it immediately.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that this Internet criminal has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    Finally, be forewarned that when Genieo is mentioned on this site, the attacker sometimes shows up under the name "Genieo support." He will tell you to run a fake "uninstaller." As he intends, the uninstaller does not completely remove the malware, and is in fact malware itself.

Maybe you are looking for

  • What are JSP, Servlet , Bean in MVC ??..how does it function?

    suppose there's a bean file (.java) consisting of SQL query, and a servlet (.java) used to show an image, and lastly a jsp page when clicked shows the image.............can you please explain how does this work,how the logic flows,what happens step b

  • Ipod-touch using as usb-disc

    is this some how possible? at lest I would have then for 300$ a storage device

  • Adobe Acrobat 4.0 & 5.0 Licensing

    Hey all, I am trying to find out if these versions:- Adobe Acrobat 4.0 & Adobe Acrobat 5.0 Are actually Licensed Software??? There are instances of installations on my network...however they don't appear for be "Reader" which is freeware. any help wo

  • How do I unsubscribe from Mac Life

              According to the instructions in MacLife (Newsstand) In order to cancel my subscription to MacLife, I'm to go to iTunes, accounts, manage accounts and 'unsubscribe' the magazine. Problem is, Mac Life is not listed as an option. It's not lis

  • Changed Hard Disk for Time Machine

    I have a question, I've searched and can't find the answer (maybe I'm just not good at searching). I ran out of room on my external HD for time machine backups, so I added another external HD and changed the time machine location to the new HD. I did