The VBConstraints statement enables you to limit the use of
your part.
{ //VBConstraints: partConstraint+
}
-
- partConstraint
- A restriction on the use of the part.
( noBaseClass
| noShow | noAdd |
noDefCtr | noGen | noWin
| noOS2 | noAIX )
-
- noBaseClass
- Prevents a visual, nonvisual, or class interface
part from being used as a base part.
- noShow
- Prevents the part from being listed in a
VisualAge window.
- noAdd
- Prevents the part from being added to the
Composition Editor's free-form surface.
- noDefCtr
- Prevents the use of a default constructor for a
visual, nonvisual, or class interface part. The
part requires at least one input parameter for
construction. If this keyword is specified,
supply constructor information in a VBConstructor
statement.
Using this keyword enforces the
following restrictions:
- You cannot tear off an attribute.
- You cannot create a variable of this
type. To use this part as a variable,
specify a pointer to the part as the
variable type.
- If this type is used to provide an action
result, it can only be used as event
data. It cannot be stored in a variable.
- noGen
- Prevents code generation for the part. Code is
never generated for a class interface or function
group part.
- noWin
- Excludes the part on Windows.
- noOS2
- Excludes the part on OS/2.
- noAIX
- Excludes the part on AIX.
Defining the Part
Interface Using Part Information Statements
Visual Part Information
Statements
Nonvisual Part Information
Statements
Class Interface Part
Information Statements
Function Group Part Information
Statements
Part Information Statement
Descriptions
Part Information
Statement Examples