property OnTriggerOutSent : TNotifyEvent
Defines an event handler that is called whenever the dispatcher gets a request to send one or more characters.
This event handler is called in a subset of the cases where the more general OnTriggerStatus handler is called. OnTriggerStatus is called first when an output request occurs, even if an OnTriggerOutSent handler is installed. The parameter passed to the TNotifyEvent is the TApxComPort component that generated the trigger.
Unlike most triggers, OnTriggerOutSent does not need to be reset. The event is always generated for output events until the trigger is deactivated.
The following example adds a status trigger for OnTriggerOutSent; thereafter each time the program calls any transmit method or property ApxComPortTriggerOutSent is called to update a status display:
TrigOS : Word;
...
TrigOS := ApxComPort.AddStatusTrigger(stOutSent);
...
procedure TMyForm.ApxComPortTriggerOutSent(CP : TObject);
begin
...update display to indicate data was transmitted
end;
See also: OnTriggerStatus