Wright Justified

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

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. ;-)

1 Comments:

Anonymous Shawn Christopher said...

Micheal,
Looks much easier...I'm sure this will help to cut down a few k's in some applications and help with some code movement.

12:56 AM  

Post a Comment

Links to this post:

Create a Link

<< Home