VBPromotedEvent Statement

The VBPromotedEvent statement describes the implementation and interface of an event that is promoted to the interface of a composite part. The VBEvent statement describes only the interface of a promoted event. In addition to the information specified for a VBEvent statement, the VBPromotedEvent statement identifies the source of the promoted event. Use this statement to describe promoted events.

{ //VBPromotedEvent: name, description?, id, subpartName, subpartFeatureName, eventDataType?, featureFlag* }

name
Event name to be used in visual composition.

description
Optional feature description.

( "text description" | (resourceId, resourceDll) )

resourceId
Optional resource number of the descriptive text. If you specify a resource ID, you must also specify the resource DLL name.

resourceDll
Optional resource DLL name containing the descriptive text. You must specify the DLL name if you specify a resource ID. Do not include the .dll extension.

id
C++ public notification ID.

subpartName
The name of the embedded part from which the event is promoted.

subpartFeatureName
The name of the event that is promoted from the the embedded part.

eventDataType
Optional event parameter type.

featureFlag
Optional feature flag.

( preferred | noWin | noOS2 | noAIX )

preferred
Specifies that the feature is preferred for the part. Preferred features appear in the part connection list.

noWin
Excludes the feature on Windows.

noOS2
Excludes the feature on OS/2.

noAIX
Excludes the feature on AIX.


Related procedures
Defining the Part Interface Using Part Information Statements

Related references
Visual Part Information Statements
Nonvisual Part Information Statements
Part Information Statement Descriptions
Part Information Statement Examples

VBResourceDllName Statement

The VBResourceDllName statement specifies the default resource DLL for the part. This is inserted into the .cpp file when code is generated.

{ //VBResourceDllName: fileName }

fileName
Name of the file that contains the compiled part. The .dll extension is not expected.


Related procedures
Defining the Part Interface Using Part Information Statements

Related references
Visual Part Information Statements
Nonvisual Part Information Statements
Part Information Statement Descriptions