Show: Delphi C++
Display Preferences

Classes.RegisterNonActiveX

From XE API Documentation
Jump to: navigation, search

Delphi

procedure RegisterNonActiveX(const ComponentClasses: array of TComponentClass; AxRegType: TActiveXRegType);

C++

extern PACKAGE void __fastcall RegisterNonActiveX(TComponentClass const *ComponentClasses, const int ComponentClasses_Size, TActiveXRegType AxRegType);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Classes.pas
Classes.hpp
Classes Classes

Description


Prevents a set of components from being made available to the ActiveX wizard.


Call RegisterNonActiveX to prevent a registered set of custom components from being converted into ActiveX controls using the ActiveX wizard. The components must still be registered using RegisterComponents or RegisterNoIcon if they are to work with the Object Inspector.

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

Note:  In C++, the ComponentClasses_Size is the index of the last class in ComponentClasses (one less than the number of classes).

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

Put the call to RegisterNonActiveX in the Register procedure.

See Also

Personal tools
Previous Version
Translations