Wright Justified

Just a small spot in this large universe for useful useless information about anything and everything

Monday, May 29, 2006

Strokes in Boxely

Something new in '06 for Boxely is the ability to do per-side stroke colors and per-corner stroke corner radius. Below are some samples. Notice the "stroke" style can now take more than 1 color. The order of the sides are top, right, bottom, left. This follows the order in which you set the margin and padding for a box's four corners. The "strokeCornerRadius" style is the same. The value "none" can be used to omit a given side stroke.

Per-side stroke colors and Per-corner stroke corner radius:

<box s:width="100" s:height="100" s:margin="14"
      s:stroke="blue green red yellow" s:strokeWidth="2"/>

<box s:width="100" s:height="100" s:margin="14"
      s:stroke="red" s:strokeCornerRadius="0 10 25 60"/>




Selective Sides:

<hbox>
  <vbox s:hAlign="center" s:vAlign="center">
    <box s:width="40" s:height="40" s:margin="14"
        s:fill="#d0d0d0"
        s:fillCornerRadius="0 10 10 0"
        s:stroke="blue blue blue none"
        s:strokeWidth="2" s:strokeCornerRadius="10"/>
  </vbox>
  <vbox s:hAlign="center" s:vAlign="center">
    <box s:width="40" s:height="40" s:margin="14"
        s:fill="#d0d0d0"
        s:fillCornerRadius="10 10 0 0"
        s:stroke="blue blue none blue"
        s:strokeWidth="2" s:strokeCornerRadius="10"/>
  </vbox>
  <vbox s:hAlign="center" s:vAlign="center">
    <box s:width="40" s:height="40" s:margin="14"
        s:fill="#d0d0d0"
        s:fillCornerRadius="10 0 0 10"
        s:stroke="blue none blue blue"
        s:strokeWidth="2" s:strokeCornerRadius="10"/>
  </vbox>
  <vbox s:hAlign="center" s:vAlign="center">
    <box s:width="40" s:height="40" s:margin="14"
        s:fill="#d0d0d0"
        s:fillCornerRadius="0 0 10 10"
        s:stroke="none blue blue blue"
        s:strokeWidth="2" s:strokeCornerRadius="10"/>
  </vbox>
  <vbox s:hAlign="center" s:vAlign="center">
    <box s:width="40" s:height="40" s:margin="14"
        s:fill="#d0d0d0"
        s:stroke="none blue" s:strokeWidth="2"/>
  </vbox>
  <vbox s:hAlign="center" s:vAlign="center">
    <box s:width="40" s:height="40" s:margin="14"
        s:fill="#d0d0d0"
        s:stroke="blue none" s:strokeWidth="2"/>
  </vbox>
  <vbox s:hAlign="center" s:vAlign="center">
    <box s:width="40" s:height="40" s:margin="14"
        s:fill="#d0d0d0"
        s:stroke="none none blue none" s:strokeWidth="2"/>
  </vbox>
</hbox>



Friday, May 26, 2006

Mac Ads

I know, I am way behind. Have you seen the Mac ad? Check out the ads on the Apple site. I do not have a Mac, and really have not used one much. I found these ads very funny. (I like the virus one).

Thursday, May 25, 2006

USB Storage Devices - Not really sure anymore

I heard about this really cool site to find all types of gadgets that normally do not make it into the states. The company is Dynamism. Do you have a USB storage key? Is it a boring gray or black colored one? Want one that is a little more exciting? How about one that looks like a duck? Yes, a duck. What's next? A Hello Kitty USB storage key or maybe sushi.

Monday, May 22, 2006

Too much Andy?

Can you watch too much Andy Griffith? Well, I tried. This weekend TVLand had 48 hours straight of The Andy Griffith Show. I did not watch all of them, and I did not have Tivo to record any of them. However, I did see quite a few of the episodes. I only like to watch the black and white episodes, so that cut out some of them. It is a nice family show to watch. You just cannot go wrong with Andy and Barney. I also like when the Darlings come to town. ;-)

Sunday, May 14, 2006

Boxely Shortcut

In Boxely 1.5.3.1 there is a new property on the shell object to get the target box from an event. In past versions of Boxely, to get the target box from an event you would have to do something like the following:

function onCommand()
{
   var event = shell.getCurrentEvent();
   if (event)
   {
      var targetBox = event.targetBox;
      if (targetBox)
      {
        // Do something.
      }
   }
}

Starting with Boxely version 1.5.3.1 you can do the following:

function onCommand()
{
   var targetBox = shell.currentEventTargetBox;
   if (targetBox)
   {
     // Do something.
   }
}

Now that is much easier. ;-)