TApxModemStatus Component

Hierarchy Properties Methods

Unit:

AxMdmDlg

Description:

The TApxModemStatus component is a descendant of the TApxAbstractModemStatus class that implements a standard modem status dialog. To use it, create an instance of the component and assign it to the StatusDisplay property of a TApxModem component. The TApxModemStatus component displays common status indicators as well as a detailed history of what the TApxModem is doing. The TApxModemStatus component provides a Cancel button, which will cancel an AutoAnswer or Dial attempt in progress.

The Status label displays a string describing the current TApxModem.ModemState property value, and indicates what the TApxModem is doing. The Using label displays the TApxModem.SelectedDevice.Name property value and the serial port that is being used. The Elapsed time label displays the number of seconds that have elapsed since the current operation began.

The Cancel button will cancel the operation by calling the CancelCall method of the TApxModem component.

The down arrow button will display a more detailed status dialog.

To return to the compact display, click the up arrow button.

To create a custom status dialog, the OnModemStatus event of the TApxModem component can be used to update a separate form in your application, or to update a status bar. You can also create a new component descending from the TApdAbstractModemStatus class. The UpdateStatus method of the TApdAbstractModemStatus class is automatically called by the TApxModem component whenever the OnModemStatus event of the TApxModem component is generated. This method must be implemented to update your custom dialog. See the AxMdmDlg.pas unit for details on creating a custom dialog.