Class for registration object methods in application.
TDefaultMethodRegister = class;
ed_RegMeth
Class for methods registration. Global variable MethRegister: TDefaultMethodRegister is used by the Designer to assign method to procedural property (event).
To register method use AddMethod function.
But AddMethod is not comfortable to use, so class have list of overload helper-methods to simplify registration:
To simplify another types of method add helper function (see example)
Do not instance object of this class. Instead use global variable existing MethRegister.
See example how to register methods with and without helper function.
See demo application in Demo/reg_new_method_type/ too.
|
Topic |
Description |
|
The fields of the TDefaultMethodRegister class are listed here. | |
|
The methods of the TDefaultMethodRegister class are listed here. | |
|
The properties of the TDefaultMethodRegister class are listed here. |
|
Data Member |
|
protected |
|
Method |
|
virtual |
|
Property |
|
read only |
|
TDefaultMethodRegister Fields |
Description |
|
List to store PMethodInfo for registered methods |
|
TDefaultMethodRegister Methods |
Description |
|
Use of of the Add(...) methods to register existent procedure to be available in object inspector at runtime. | |
|
| |
|
Creates and initializes the MethRegister object | |
|
Destroys MethRegister object | |
|
Calls Proc for each registered method of the specified type TypeData | |
|
Remove all entries of registered object methods | |
|
Looks for the method in registered methods list, then validates type of the method. |
|
TDefaultMethodRegister Properties |
Description |
|
Specifies the number of items in the array of registered methods. | |
|
Provides indexed access to the items in the PMethodInfo collection. |
|
Copyright (c) 2004 - 2011 EControl Ltd.. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|