RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.Create Constructor

Creates and initializes an instance of TOleContainer.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TOleContainer(TComponent * AOwner);

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. 

 

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