For some reason, the Flex guys didn't make cornerRadius an array (even
though the function that eventually gets called to render the corners takes
an array of values).

Fortunately, someone kindly fixed this (for buttons at least) with the
EnhancedButtonSkin, which is part of Flexlib (Google code has it). Its a
programmatic skin. I've got no idea if its generic enough to apply to
non-buttons... I wouldn't be surprised, but I've not studied the code too
closely.

Personally, I used it to create custom tabs that I could have more control
over (just round the top corners and keep the bottom corners square). Its
also useful for creating "side tabs", like in a notebook, by just rounding
the corners on one side.

Here's hoping a future Flex SDK incorporates as much of the extras in
Flexlib as possible!

Troy.


On 9/14/07, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>  cornerRadius?
>
>
>  ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Roy Tang
> *Sent:* Friday, September 14, 2007 4:03 AM
> *To:* [email protected]
> *Subject:* Re: [flexcoders] Rounded corners
>
>
>
> Ok. I was just hoping there might be a built-in alternative hehe
>
> Thanks all :)
>
> Roman Protsiuk wrote:
> >
> > It should be custom skinned to do that. Programmatic skin I guess.
> >
> > R.
> >
> > On 9/14/07, *Roy Tang* <[EMAIL PROTECTED] <roytang.sub%40gmail.com>
> > <mailto:[EMAIL PROTECTED] <roytang.sub%40gmail.com>>> wrote:
> >
> > Thanks, but I seem to have been misunderstood. I know how to use
> > rounded
> > corners, but I want to round corners selectively, like
> > focusRoundedCorners property, i.e. have only 3 corners rounded, etc.
> >
> > Any ideas? :)
> >
> > Maximilian Nyman wrote:
> > >
> > > Note: If you use cornerRadius you need to have borderStyle="solid".
> > > (It could be borderThickness=0, but it has to be existent)
> > >
> > > /Max
> > >
> > > On 9/14/07, Sheriff <[EMAIL PROTECTED] <sherif626%40yahoo.com>
> > <mailto:sherif626% <sherif626%25>40yahoo.com>
> > > <mailto:sherif626% <sherif626%25> <mailto:sherif626% <sherif626%25>25>
> 40yahoo.com
> > <http://40yahoo.com>>> wrote:
> > > >
> > > >
> > > > you can create your own skin and apply it otherwise you can use
> > the
> > > cornerRadius
> > > >
> > > >
> > > > ----- Original Message ----
> > > > From: Roy Tang <[EMAIL PROTECTED] <roytang.sub%40gmail.com>
> > <mailto:roytang.sub%40gmail.com> <mailto: roytang
> > <mailto:roytang>.sub%40gmail.com>>
> > > > To: [email protected] <flexcoders%40yahoogroups.com>
> > <mailto:flexcoders% <flexcoders%25>40yahoogroups.com> <mailto:
> flexcoders%
> > <mailto:flexcoders% <flexcoders%25>25>40yahoogroups.com <
> http://40yahoogroups.com>>
> > > > Sent: Thursday, September 13, 2007 11:33:23 PM
> > > > Subject: [flexcoders] Rounded corners
> > > >
> > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > Is there a way to control which corners are rounded for a
> > button or a
> > > > canvas or whatever? Something like what focusRoundedCorners
> > does, except
> > > > for the actual control, not for the focus rectangle.
> > > >
> > > > Thanks,
> > > >
> > > > Roy
> > > >
> > >
> > >
> >
> >
> >
>
> 
>

Reply via email to