Vcl.MPlayer.TMediaPlayer.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

C++

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

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.MPlayer.pas
Vcl.MPlayer.hpp
Vcl.MPlayer TMediaPlayer

Description

Creates a media player object.

Call Create to instantiate a media player at runtime. For media players created at design time, Create is called automatically.

Create allocates memory for a media player and calls the inherited Create. Then it loads the bitmaps for the media player's buttons and initializes its properties, setting AutoEnable, AutoRewind, Colored, Enabled, and Visible to true, AutoOpen to false, and DeviceType to dtAutoSelect.

See Also