Button Type property

Previous Next

This is where you specify how the selected button object must react when it is clicked. The Standard button type (the default) has no special characteristics.

You can give a button additional characteristics by choosing a different button type than Standard: This is especially appropriate in dialogs.

· Apply

Intended for use in dialogs. This type of button remains insensitive until a value change occurs in the dialog (or in an info box inserted into the dialog). Use this type for Apply buttons and assign the ActionDialogApply(ActionDialogApply..) method to it.

When inserted into info boxes, this button type has the same behavior as the Standard button type.

· Cancel

Intended for use in dialogs. This type of button is automatically assigned to the ESC key (a standard for Cancel buttons). Use this type for Cancel buttons and assign the ActionDialogCancel() method to it.

· Default

This type of button is automatically assigned to the ENTER key. It has a raised border unless the user navigates to a different button using a function key.

In dialogs, buttons with the Default Button Type property remain insensitive until all mandatory fields that are displayed in the dialog are filled out.

This button type is typically used for OK buttons when initial focus on window entry is not on a button. In general, focus on window entry is first determined by tab order, and only then by any Default button type settings.

· No Check

This button type is for backward compatibility only. When using the Early Save-local property, use the No Check button type to prevent the record from being stored as a result of the user clicking the button.

· Sensitive

Intended for use in dialogs. In dialogs, this type of button remains insensitive until all mandatory fields in the dialog (or in an info box inserted into it) are filled out. Use this button type for functions in dialogs that require certain values in order to proceed. When inserted into info boxes, this button type has the same behavior as the Standard button type.

· Standard (the default)

This type of button performs whatever method(s) you specify for its Action property when it is clicked.

NOTE:

You can also drag a specific type of button from the Controls tab in the Class catalog, as follows:

· Apply

If you drag an Apply button from the Controls tab, it will have the ActionDialogApply() method , the "Apply" label and the ALT+A mnemonic key combination assigned to it.

· Cancel

If you drag a Cancel button from the Controls tab in the Class Catalog, it will have the ActionDialogCancel() method and the label "Cancel" assigned to it automatically.

· OK

If you drag an OK button from the Controls tab page in the Class Catalog, it will have the ActionDialogOk() method and the label "OK" assigned to it automatically.

· Sensitive

Intended for use in dialogs. In dialogs, this type of button remains insensitive until all mandatory fields in the dialog (or in an info box inserted into it) are filled out. Use this button type for functions in dialogs that require certain values in order to proceed. When inserted into info boxes, this button type has the same behavior as the Standard button type.

· Standard (the default)

This type of button performs whatever action(s) you specify for its Action property when it is clicked.

NOTE:

You can also drag a specific type of button from the Controls tab in the Class catalog, as follows:

· Apply

If you drag an Apply button from the Controls tab, it will have the ActionDialogApply() , the "Apply" label and the ALT+A mnemonic key combination assigned to it.

· Cancel

If you drag a Cancel button from the Controls tab in the Class Catalog, it will have the ActionDialogCancel() Button Type property and the label "Cancel" assigned to it automatically.

· OK

If you drag an OK button from the Controls tab page in the Class Catalog, it will have the ActionDialogOk() ActionDialogOk() and the label "OK" assigned to it automatically.