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:
Starting with Boxely version 1.5.3.1 you can do the following:
Now that is much easier. ;-)
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:
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.
Post a Comment
Links to this post:
Create a Link
<< Home