Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPConnection.OnWorkBegin
WorkBegin event handler for starting read or write buffering.

property OnWorkBegin;
Description
OnWorkBegin is an event of type TWorkBeginEvent as implemented in TIdComponent. OnWorkBegin is used in conjunction with BeginWork to notify Indy components and classes when buffered read or write operations are initiated. OnWorkBegin is generally used to control the update of progress indicators or GUI components.

AWorkMode indicates the operation performed and the notification sent to OnWorkBegin. AWorkMode can contain one of the following values:

AWorkCountMax indicates the maximum number of bytes expected for the operation sent to OnWorkBegin, or 0 when the number of bytes not known.

The event TWorkEvent is implemented in IdComponent.pas.

TIdTCPConnection publishes the OnWorkBegin event. OnWork is not published in the ancestor class TIdComponent.