Vcl.AxCtrls.TActiveFormFactory.Create
Delphi
constructor Create(ComServer: TComServerObject;
ActiveXControlClass: TActiveXControlClass;
WinControlClass: TWinControlClass;
const ClassID: TGUID; ToolboxBitmapID: Integer;
const LicStr: string; MiscStatus: Integer;
ThreadingModel: TThreadingModel = tmSingle);
C++
__fastcall TActiveFormFactory(System::Win::Comobj::TComServerObject* ComServer, TActiveXControlClass ActiveXControlClass, Vcl::Controls::TWinControlClass WinControlClass, const GUID &ClassID, int ToolboxBitmapID, const System::UnicodeString LicStr, int MiscStatus, System::Win::Comobj::TThreadingModel ThreadingModel);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | Vcl.AxCtrls.pas Vcl.AxCtrls.hpp |
Vcl.AxCtrls | TActiveFormFactory |
Description
Creates and initializes a new Create object.
Vcl.AxCtrls.TActiveFormFactory.Create inherits from Vcl.AxCtrls.TActiveXControlFactory.Create. All content below this line refers to Vcl.AxCtrls.TActiveXControlFactory.Create.
Creates and initializes a new Create object.
The ComServer parameter is a pointer to the COM server object for the module containing the property page factory. This is normally a global variable, ComServer, declared in the ComServ unit.
The ActiveXControlClass parameter is the class object for the controller object that implements the ActiveX control. This object should be derived from TActiveXControl.
The WinControlClass parameter is the class object for the VCL control class that implements the Windows behavior of the control. This object should be derived from TWinControl.
The ClassID parameter is the GUID of the ActiveX control. Each COM object should have a unique GUID.
LicStr is the license string for controls created with this factory. LicStr is empty if controls created with this factory are unlicensed. MiscStatus are the status bits that are stored in the registry.
ThreadingModel specifies how calls to the created ActiveX control are serialized. This determines the value of the ThreadingModel property.