Go to Glossary Search VisualAge C++ Help Go to VisualAge C++ Help Home Page Go to WWW VisualAge C++ Site

Custom Logic Connection Window

Use the Custom Logic Connection window to connect customized code to events and attributes. A custom logic connection lets you create your own type of connection. You have access to the source instance, target instance, and the event data (if any) passed on the source event.

During generation, the Composition Editor attaches your custom logic to the connection class instance. It is not available to any other connection or part. To reuse your code, attach it to the part using an event-to-member function connection instead.

Fields

Push buttons


Related concepts
Custom Logic Connections
Connections

Related procedures
Connecting Features to Custom Logic
Making Connections in the Composition Editor
Manipulating Connections on the Free-Form Surface

Related references
Connection Windows
Attribute-to-Attribute Connection - Settings Window
Event-to-Action Connection - Settings Window
Constant Parameter Value Properties Window
Member Function Connection - Settings Window

Custom Logic

Use the Custom Logic field to enter the customized code you want connected to this event. When code is generated for the part, this code is added as a member of the connection class instance. To get a list of member functions that can be called for a part, browse features for the part. To access a part in the Custom Logic field other than the source or target, you must use a pointer to the part. For example, the pointer to access myPart is imyPart().


Related concepts
Custom Logic Connections
Connections

Related procedures
Connecting Features to Custom Logic
Making Connections in the Composition Editor
Manipulating Connections on the Free-Form Surface
Browsing a Part's Features

Related references
Connection Windows
Attribute-to-Attribute Connection - Settings Window
Event-to-Action Connection - Settings Window
Constant Parameter Value Properties Window
Member Function Connection - Settings Window

Add (or Update)

Select Add (or Update) to add the connection to (or update it in) the list.

Source

Select Source to paste a reference to the source object pointer into the insertion point of the multiline edit (MLE) field.

Target

Select Target to paste a reference to the target object pointer into the insertion point of the multiline edit (MLE) field.

Event

Select Event to paste a reference to the source event pointer into the insertion point of the multiline edit (MLE) field. The event is an instance of INotifificationEvent.