Model Parts, Diagrams, Dictionary Items, and Properties > Properties > Double click script (property)
Double click script (property)
For automation interface information about the Double Click Script property (Script, Script Text or Text through the automation interface), see the automation interface topic for a Script in the Related Topics. When you select the Double Click check box, Modeler creates a Script object for the Stereotype through the Owned Double Click Script association. The Script Type of the Script object is set to OnDoubleClick. The Script object is used to record the Double Click Script that is displayed on the UI Events tab of the Stereotype's Property Pages. Note that Stereotype owned Scripts are not shown in Modeler.
This property specifies the VisualBasic script for a double click action.
For more information about working with VisualBasic double click scripts for a Stereotype, see Script functions, attributes and objects - double-click scripts.
By default, the Double Click Script property is blank.
You use the Code Editor to edit Double Click Script code. The Code Editor language is always Visual Basic when editing Double Click Script code, irrespective of the Language that is set for parent Packages and the Model. For information about the Code Editor, including setting the code language to use, see Overview of the code editor.
This property is set on the UI Events tab of a Stereotype's Property Pages. You can click the Edit button and change the code in the Code Editor window. In addition, you can add model object references to the Double Click Script code.
This property is available only when the Double Click check box is selected on the UI Events tab of a Stereotype's Property Pages.
To write scripts you require a good working knowledge of the VBScript language, the Modeler Meta Model and the Modeler Automation Interface. If you run a script that has errors, those errors can corrupt Modeler model data and make Modeler crash.
The following section provides information about the items and diagrams for which Double Click Script is a property. For more information about an item or diagram, click it.
Is property of