Screens and Graphics COMMAND ANIMATION On the Graphics tab, in the Animations group, click Command to add the animation to a selected object or group of objects. The animation enables you to click on the object or press a pre-defined key to execute the command at runtime. Double-click on the object to view its object properties. Object Properties: Command The Command animation provides one tag for each one of the events supported by it. Notice that more than one event can be configured simultaneously for the same Command animation: • On Down : Executes the command/script once when the user clicks on the object with the left mouse button. • On While :
Keeps executing the command/script continuously while the mouse pointer is pressed on the object. The period (in milliseconds) of execution for the command/script is set in the Rate field from the Configuration dialog screen, except for the VBScript option, which is executed as fast as possible. • On Up : Executes the command/script once when the user releases the left mouse button on the object. • On Right Down : Executes the command/script once when the user clicks on the object with the right mouse button. • On Right Up : Executes the command/script once when the user releases the right mouse button on the object. • On Double Click :
Executes the command/script once when the user double-clicks on the object with the left mouse button. Note: • The runtime project handles touchscreen actions the same as mouse pointer actions. • The events On Right Down, On Right Up and On Double Click are not supported in projects running on Windows Embedded target systems. • When creating a project for a touchscreen device, keep in mind that events On Right Down and On Right Up cannot be triggered on such devices. • Type menu: This setting defines the type of action that must be executed by the event of the Command animation. Notice that each event has its own type.
Therefore, the same Command animation can be configured with different types of action for different events. The following types are supported: InduSoft Web Studio Page 201 Type Description Builtin Language Allows you to configure a script using the IWS built-in language. When this type is selected, the user can configure up to 12 expressions for each event in the Expression column. The expressions are executed sequentially from the first row until the last one when the event is triggered. The result of each expression is written to the tag configured in the Tag column (if any). Consult the Built-in Scripting Language chapter for more information.
VBScript Allows you to configure a script using the standard VBScript language. When this type is selected, the user can configure a script in the VBScript editor for the Command animation. Consult the VBScript chapter for further information about the VBScript language. Open Screen Allows you to configure the Command animation to open a specific screen when the event is triggered during runtime. This type is equivalent to the Open function. You can either type the screen name in the Open Screen field or browse