You can add a dynamic presentation to a form by dragging an existing attribute from the Class View window and dropping it onto a form or GridPanel.
Several conditions apply to performing this operation as described below.
When an attribute is a member of the current class:
If an attribute's graphical object is already on the form, then dropping the attribute is rejected unless you press and hold the control key prior to dragging the attribute from the Class View. In this case, a copy of the attribute is created and added to the current class. Any existing object presentation of the item is read from the Model. If no graphical object exists for the attribute, a default Text Field object is created
When an attribute is not a member of the current class:
If an attribute's graphical object is already on the form then dropping the attribute is rejected unless you press and hold the control key prior to dragging the attribute from the Class View. This causes a copy of the item to be created and added to the current class. Any existing object presentation of the item is read from the Model. If no graphical object exists for the attribute, a default Text Field object is created.
Press and hold the shift key prior to dragging an attribute from the Class View. The attribute is moved from the original class and added to the current class. Any existing object presentation of the item is read from the Model. If no graphical object exists for the attribute, a default Text Field object is created.
When pasting an attribute, a copy of the attribute is created and added to the current class. Any existing object presentation of the item is read from the Model. If no graphical object exists for the attribute, a default Text Field object is created
To drag an attribute from the Class View window and drop it onto a form, perform the following:
Open the form by clicking the Painter tab available at the bottom of the document window.
If it is not already open, open the Class View window by clicking the View, Class View menu item.
Sort the hierarchical list into the most appropriate form to locate the attribute you want to use.
If necessary, click the plus (+) symbol next to a node to list all the items within the node.
Select the attribute you want to assign to a graphical object, and drag it onto the form.
Drop the attribute onto the form, following the conditions described earlier.
If you want to assign another type of object to the attribute, select the existing object and click the arrow adjacent to the Object Type property in the Property window.
This displays a list of other object types, which can replace the existing object while still maintaining the binding to its attribute.
Note:
The list only contains dynamic objects required, or allowed, to be bound to an attribute: Button, CheckBox, Image, Label, ListBox, Password Field, RadioButton, TextArea, and TextField.
Some special types of attributes require additional handling when dragged from the Class View window. Refer to Adding a CopyFrom for more information on these attributes.