Vcl.MPlayer.TMediaPlayer.AutoEnable

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AutoEnable: Boolean read FAutoEnable write SetAutoEnable default True;

C++

__property bool AutoEnable = {read=FAutoEnable, write=SetAutoEnable, default=1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.MPlayer.pas
Vcl.MPlayer.hpp
Vcl.MPlayer TMediaPlayer

Description

Determines whether the media player automatically enables and disables individual buttons in the component.

Use AutoEnable to automatically enable or disable the control buttons on the media player. If AutoEnable is true, the media player automatically enables or disables its control buttons. The media player determines which buttons to enable or disable by the current mode specified in the Mode property, and the current multimedia device type specified in the DeviceType property.

AutoEnable overrides the EnabledButtons property. The buttons enabled or disabled automatically by the media player supersede any buttons enabled or disabled with EnabledButtons.

If AutoEnable is false, the media player does not enable or disable buttons. The buttons must enabled or disabled with the EnabledButtons property.

The following table shows whether buttons are automatically enabled or disabled for each device mode:



Button Play Record Pause Stop Not Open

Back

Enabled

Enabled

Enabled

Enabled

Disabled

Eject

Enabled

Enabled

Enabled

Enabled

Disabled

Next

Enabled

Enabled

Enabled

Enabled

Disabled

Pause

Enabled

Enabled

Enabled

Disabled

Disabled

Play

Disabled

Disabled

Enabled

Enabled

Disabled

Prev

Enabled

Enabled

Enabled

Enabled

Disabled

Record

Disabled

Disabled

Enabled

Enabled

Disabled

Step

Enabled

Enabled

Enabled

Enabled

Disabled

Stop

Enabled

Enabled

Disabled

Disabled

Disabled



See Also


Code Examples