Carbon


Alert Button Constants

Header: Dialogs.h

enum {
    kAlertStdAlertOKButton = 1,
    kAlertStdAlertCancelButton = 2,
    kAlertStdAlertOtherButton = 3,
    kAlertStdAlertHelpButton = 4
};

Constant descriptions

kAlertStdAlertOKButton

The OK button. The default text for this button is “OK”.

kAlertStdAlertCancelButton

The Cancel button (optional). The default text for this button is “Cancel”.

kAlertStdAlertOtherButton

A third button (optional). The default text for this button is “Don’t Save”.

kAlertStdAlertHelpButton

The Help button (optional).

You can use these constants in the defaultButton and cancelButton fields in the standard alert structure to specify which buttons act as the default and Cancel buttons in the standard alert structure. These constants are also returned in the itemHit parameter of StandardAlert. Alert button constants are available with Appearance Manager 1.0 and later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)