Use the following properties to define initial characteristics
of a Variable part.
- Part properties are displayed in the part property sheet.
Variable properties
-
- autoDeleteTarget
- Specifies whether the C++ object referenced by the
variable is deleted when the object is no longer
referenced by the variable. The default is false.
This property should be true only for objects that
are created dynamically using a Factory.
- deferUpdate
- Specifies whether connection value updates for attributes
in the variable are deferred until the apply
action is called. The default is false.
For
example, if a text attribute in a variable takes its
value from an entry field and deferUpdate is true,
the text attribute is not updated as each character is
added to the entry field. A connection to the variable'sapply
action directs the variable to update its attributes for
all attribute-to-attribute connections.
- enabledForNotification
- Specifies whether the variable is enabled for event
notification. The default is true. Visual
composition connections depend on event notification.
- initializationType
- Specifies how attributes are initialized for
attribute-to-attribute connections when a new object is
placed in the variable. If a type is not specified, broadcast
is assumed. The following types of initialization are
available:
- apply--copy the attribute value from the
other end of each attribute-to-attribute
connection to the variable attribute.
- broadcast--copy the value from the
variable attribute to the attribute at the other
end of each attribute-to-attribute connection.
- targetInit--copy the value from the source
attribute to the target attribute of each
attribute-to-attribute connection. This
initialization scheme is used for variables
migrated from previous versions of VisualAge to
maintain their behavior.
- partName
- The composition name of the part. This name is used for
the class instance in generated code.
Working with Variable
Parts
Editing Part Properties
Variable
Portability -- Variable
VisualAge User Interface Part
Properties