Vcl.OleCtnrs.TOleContainer.Create

提供: RAD Studio API Documentation
移動先: 案内検索

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) { }

プロパティ

種類 可視性 ソース ユニット
constructor public
Vcl.OleCtnrs.pas
Vcl.OleCtnrs.hpp
Vcl.OleCtnrs TOleContainer

説明

CreateTOleContainer のインスタンスを作成および初期化します。

Create を呼び出すと,実行時に TOleContainer オブジェクトをインスタンス化できます。設計時にフォームに配置した OLE コンテナは自動的に作成されます。

コンポーネントをコンストラクタに渡すと,OLE コンテナを解放する権限を持つ Owner が指定された OLE コンテナを提供できます。

継承するコンストラクタを呼び出した後,Create

ControlStyle プロパティを[csClickEvents, csSetCaption, csOpaque, csDoubleClicks]に設定する

TabStop を true に設定する

ParentColor を false に,BorderStyle を bsSingle に設定する

AllowActiveDocAllowInPlace を true に設定する

AutoActivate を aaDoubleClick に,AutoVerbMenu を true に設定する

CopyOnSave を true に設定する

関連項目