Indy 9 | Content | Index | Reference

TWorkEvent
Unit: IdComponent
Indicates that the read or write operation is being performed.

    TWorkEvent = procedure (Sender: TObject; AWorkMode: TWorkMode; const AWorkCount: Integer) of object;

Unit
IdComponent
Parameters
AWorkCount
Number of bytes affected by the event.
AWorkMode
The operation to be performed.
Sender
Object instance triggering the event.
Description
This event often fires when a component is receiving or sending data and this event is often used to update progress indicators.

AWorkMode indicates if the component is receiving or sending data and can be one of two values:

- wmRead - The component is reading data from the peer.

- wmWrite - The component is sending data to the peer.

AWorkCount indicates the number of bytes sent or received.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.