System.Classes.RegisterNonActiveXProc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE void __fastcall (*RegisterNonActiveXProc)(TComponentClass const *ComponentClasses, const int ComponentClasses_High, TActiveXRegType AxRegType);

Properties

Type Visibility Source Unit Parent
variable public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

RegisterNonActiveXProc is called by RegisterNonActiveX.

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

See Also