Vcl.OleCtnrs.TOleContainer.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

C++

__fastcall virtual TOleContainer(System::Classes::TComponent* AOwner);
/* TWinControl.CreateParented */ inline __fastcall TOleContainer(HWND ParentWindow) : Vcl::Controls::TCustomControl(ParentWindow) { }

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.OleCtnrs.pas
Vcl.OleCtnrs.hpp
Vcl.OleCtnrs TOleContainer

Description

Creates and initializes an instance of TOleContainer.

Call Create to instantiate a TOleContainer object at runtime. OLE containers placed on forms at design time are created automatically.

Pass a component to the constructor to supply the OLE container with an Owner that is responsible for freeing it.

After calling the inherited constructor, Create

Sets ControlStyle to [csClickEvents, csSetCaption, csOpaque, csDoubleClicks].

Sets TabStop to true.

Sets ParentColor to false and BorderStyle to bsSingle.

Sets AllowActiveDoc and AllowInPlace to true.

Sets AutoActivate to aaDoubleClick and AutoVerbMenu to true.

Sets CopyOnSave to true.

See Also