Animates one item as though it were flying to another tree.
Syntax
rv = Send_Message(Ctrl, "OLE.AnimateItem", Item, DestCtrl, DestItem)
Parameters
Parameter | Description |
---|---|
Item | The item to animate |
DestCtrl | The destination tree control |
DestItem | The destination item in the destination tree control |
Remarks
The AnimateItem method animates an item, given the user the impression that it is flying from the source tree to the destination tree. This is the same animation used in the SendItems and TransferItems methods. The main difference is that this function does not actually change the trees. It is useful for providing feedback to the users that a transfer took place after programmatically altering the trees.
In order for the animation to stand out, the source and destination items are forced into view and selected.
Example
// Assume two trees with boys and girls organized into teams // Send the unassigned children to the green team in tree #2 // Animate an item from one tree to another Send_Message(@Window:".OLE_TREE", "OLE.AnimateItem", "Abigail", @Window:".OLE_TREE2", "Hailey")