So what is the approach to use for non-rectangular borders? If someone has some good resources for programmatic border skins I'll happily digest them, I've read anything I can find.
So let's say I've got a VBox and I create a custom skin that tapers the right side into a point. I extend Border because it's not rectangular in nature, can I not use this skin with Flex containers? Do I need custom containers that work with borderSkins that are not rectangular? On Tue, Apr 1, 2008 at 11:28 PM, Alex Harui <[EMAIL PROTECTED]> wrote: > You may have to implement IRectangularBorder > > > ------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Danny Gold > *Sent:* Tuesday, April 01, 2008 1:23 PM > *To:* [email protected] > *Subject:* [flexcoders] Sizing when dealing with custom borderSkin > > > > I've created a programmatic border skin that extends 'Border', but > something seems a little off. I override the get borderMetrics > function to return the EdgeMetrics object representing how large my > custom border is, and I override updateDisplayList to draw the border. > That's pretty much all this is in my skin class. > > When I use this skin on a container of some sort like a VBox, if I > view the borderMetrics property of the VBox, it is all 0s, and the > VBox doesn't seem to be taking the borderMetrics of its borderSkin > property into account. > > Let's say the right side of my skin needs 20 pixels. The VBox contents > seem to be drawn over my border skin instead of stopping 20 pixels > before the width of the container to allow for the skin. > > Did I miss something? This is the first time I've written a > programmatic borderSkin. > > >

