Animating an Object to Trigger a ViewX Command
You can animate an object so that when it is selected, it causes a ViewX command to be executed. Common uses for this type of animation include configuring a Mimic object to activate zooming in or out, trigger printing, or access the Change Password dialog box.
When animating an object to trigger a ViewX command, you need to set the PickType to 14 (for ViewX command). You also need to define the ViewX command in the PickParam expression, using the syntax:
WM_COMMAND( <ViewX Command>)
Where <ViewX Command> is one of the following (do not include the angle brackets):
- Back
- Next
- Home
- Zoom In
- Zoom Out
- Full Screen
- Log On
- Log Off
- Close
- Change Password
- Alarms on System
- Events on System
- Add to Favorites
- Help
- Exit.
Example:
A Mimic object that is configured to act as a Back button (display the previously viewed document), uses the animations:
- PickType—14
- PickParam—WM_COMMAND(Back)