Great Degrafa preso at the RMAUG last night!

I was able to make it over to The Hive last night to see Juan “the hard core super star Degrafa Guy” Sanchez present Degrafa at the RMAUG. I just made up that name, but it fits, so he’s welcome to it if he likes.

Dave and company have a new home at The Hive, which is a very sweet co-working facility here in Denver.

Juan’s session was well timed, i had spent a good chunk of the day figuring out how to skin a link button. Turned out livedocs was spot on with it’s example (go figure). But after watching Juan skin a button, I was wishing we had Degrafa in the project I’m on. I did think about using it, but figured that was a decision to be discussed before I committed a whole new library of code.

So my solution, worked well enough, but the Degrafa way is killer.

In a Skin file…

<code>

<fills>
<SolidFill
color=”#936″
id=”myFill”/>
</fills>

<geometry>
<RoundedRectangleComplex
state=”upSkin”
width=”{awidth}”
height=”{aheight}”
bottomLeftRadius=”10″
bottomRightRadius=”20″
topLeftRadius=”15″
fill=”{myFill}” />
<RoundedRectangleComplex
state=”overSkin”
width=”{awidth}”
height=”{aheight}”
fill=”{myFill}” />
</geometry>

</GraphicBorderSkin>

<code>

There’s some AS at the top, but that’s the jist of stateful skinning of a button. degrafa FTW!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>