Difference between revisions of "Method make delegate"
From Ribbon Commander Documentation
(→Generic Form) |
(→Remarks) |
||
Line 17: | Line 17: | ||
== Remarks == | == Remarks == | ||
# (VBA-specific) If the [[rxCustomUI]] object has [[rxDispatchScope | global dispatch scope]], the target function needs to be a global member of a standard VBA module | # (VBA-specific) If the [[rxCustomUI]] object has [[rxDispatchScope | global dispatch scope]], the target function needs to be a global member of a standard VBA module | ||
− | # (VBA-specific) If the [[rxCustomUI]] object has [[rxDispatchScope | local dispatch scope]], the target function needs to be a public member of the VBA class which is used to instantiate the dispatch object (see [[# | + | # (VBA-specific) If the [[rxCustomUI]] object has [[rxDispatchScope | local dispatch scope]], the target function needs to be a public member of the VBA class which is used to instantiate the dispatch object (see [[#Examples | Examples]]) |
== Examples == | == Examples == |
Revision as of 16:33, 14 March 2013
Contents
Description
Creates a new rxDelegate object associated to a callback function and owned by the rxCustomUI instance.
Parameters
Generic Method Form
Parameter Name
|
Parameter Type
|
Default Value
|
Description
|
methodName | string | [none] | The name of the target callback function |
return | rxDelegate | [none] | The newly created rxDelegate |
.NET Delegate Override
Parameter Name
|
Parameter Type
|
Default Value
|
Description
|
callbackDelegate | Delegate | [none] | An instance of a .NET delegate used to dispatch the callback |
return | rxDelegate | [none] | The newly created rxDelegate |
Remarks
- (VBA-specific) If the rxCustomUI object has global dispatch scope, the target function needs to be a global member of a standard VBA module
- (VBA-specific) If the rxCustomUI object has local dispatch scope, the target function needs to be a public member of the VBA class which is used to instantiate the dispatch object (see Examples)