RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.RegisterNonActiveXProc Variable

RegisterNonActiveXProc is called by RegisterNonActiveX.

Pascal
RegisterNonActiveXProc: procedure(const ComponentClasses: array of TComponentClass; AxRegType: TActiveXRegType) = nil;
C++
procedure(const ComponentClasses: array of TComponentClass; AxRegType: TActiveXRegType) RegisterNonActiveXProc = nil;

Classes

RegisterNonActiveX is used to prevent a registered set of custom components from being converted into ActiveX controls using the ActiveX wizard. It expects RegisterNonActiveXProc to be defined, and will throw an exception if not. If defined, it is invoked to carry out the protective process.  

ComponentClasses parameter an array of custom classes that are descended from TComponent.  

The AxRegType parameter indicates whether only the components in the ComponentClasses array should be blocked from the ActiveX wizard (when AxRegType is axrComponentOnly), or whether their descendants should be prohibited from becoming ActiveX controls as well (when AxRegType is axrIncludeDescendants). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!