Composite Control Callback Functions


The Composite Control object model provides dynamic callback functions using the concept of delegation. 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.

Syntax

Public functionName (obj, ctControlType, EventName, args()) As Integer

Parameters

Name Data Type Description
obj Object Reference to the delegator object which triggered the callback
ControlType ccControlType Type of delegator object which triggered the callback.
EventName String Name of the event delegator.
args() ParamArray List of arguments passed from the event delegator.


Remarks

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).

Last edited Dec 31, 2010 at 2:20 AM by vba_junkie, version 4

Comments

No comments yet.