Step 1. Create Linked Objects
About this task
1 | Create a source for linked objects. |
2 | Save the screen with the source in an easy to access location. |
3 | Create links to the source object. |
Create an Object that can be the Source for a Linked Object |
- Create the source for a linked object.
- Open CimEdit.
- Create all the objects you want to include in the linked object.
SCREEN 1 |
Note: The object can be a single object or group. Most often it will be a group. the remainder of this procedure assumes that a group will be linked.
- Open the Properties - Group dialog box.
- Name the group.
- Create public or private variables needed in the group as follows.
A | Checked | Public | Values can be entered for the variable ID in the link container. |
This makes some values unique to that container. | |||
B | Clear | Private | A value cannot change for the variable ID in the link container. |
- Implement events, procedures and scripts as needed.
- Save the CimEdit screen that now contains the source object.
Result: Now screen designers can create links to the source object on other screens and change the public variables to those needed for each new link.
- Save the screen with the source in an easy to access location.
The screen with the source objects can be in any location that is available to the screens that will contain the links.
A convenient way to make the objects available is to add the screens to the Object Explorer.
- Create links to the source object.
Create a link from either of the following.
- Source screen
- Object Explorer
- Select a source object on the source screen, SCREEN1.
SCREEN 1 |
- Hold down Ctrl+Shift keys and the left-mouse button.
- Drag a link of the source object to another location button.
Note: Keep holding down the keys and button.
As you move the linked object to the destination screen, SCREEN2, the cursor looks like this.
- Use the mouse or arrow keys to position the container where you want it on the destination screen, SCREEN2.
SCREEN 1 | SCREEN 2 |
Source | Links |
Result: The container is linked to the link source object.
Example. Create an Object that can be the Source for a Linked Object
This example creates a button with a script that increments a point and text that displays the current value of the point.