Skip to content

PlayerTrackBarSynchrone

property

Delphi
property PlayerTrackBarSynchrone: Boolean read GetPlayerTrackBarSynchrone write SetPlayerTrackBarSynchrone default DEF_PlayerTrackBarSynchrone;
C++Builder
__property bool PlayerTrackBarSynchrone = {read=GetPlayerTrackBarSynchrone, write=SetPlayerTrackBarSynchrone, default=0};
C#
public bool PlayerTrackBarSynchrone { get; set; }
VB.NET
Public Property PlayerTrackBarSynchrone As Boolean
C++/Qt
BOOL GetPlayerTrackBarSynchrone ();
void SetPlayerTrackBarSynchrone (BOOL Value);

Enables the synchronous behavior of the trackbar. When this property is enabled, moving the trackbar with the mouse also immediately moves the position in the video clip. When it is disabled, the position is updated only when the mouse button is released, after moving the trackbar with the mouse.

Important: for this feature to work properly, inform TVideoGrabber of the mouse and keyboard actions on the trackbar by invoking NotifyPlayerTrackbarAction from the trackbar's event.

See the trackbar code of the MainDemo project for sample code. With Delphi or C++Builder, if a TTrackbar component is assigned to the PlayerTrackBar property, this is handled automatically.