Composite Control Callback Functions
The Composite Control object model provides dynamic callback functions using the concept of
. Using delegation, only one delegator need be created to manage any number of callbacks. Further, the callback registry can be changed at any point during program execution. Without the flexibility and power of delegation, the Composite Control
object model could not work.
Public functionName (obj, ctControlType, EventName, args()) As Integer
||Reference to the delegator object which triggered the callback
||Type of delegator object which triggered the callback.
||Name of the event delegator.
||List of arguments passed from the event delegator.
This signature must be implemented for all functions that are to act as callbacks (delegates).
The function integer return type accommodates events which have a return parameter (e.g., the Cancel parameter of the Form_Open() event).