Common Dialogs

Uses of selected CMDialog subclasses are supported. As these common dialogs are modal and cannot be reimplemented, they need to be handled differently.

At replay time, the necessary CMDialog subclass methods are tracked, which call back the AtcgControl class replay method to take the actions required. For example, if the CMDColor class is used, when the CMDColor class open method calls back the AtcgControl class replay method, the AtcgBtnClick application is started during the preamble, which is told which button to click. It does this by calling Windows APIs. During the postamble, the recorded color is set in the CMDColor object. The recorded color was stored in a property in the Application subclass, which was set before the dialog was brought up.

The CMDFont and CMDPrint classes are not currently supported.