http://www.newton-inc.com/dev/techinfo/qa/qa.htm
ModalConfirm
and AsyncConfirm
, the 2.0 Newton Programmer's Reference says you may pass three types of things as the buttonList argument: a symbol ('okCancel
or 'yesNo
), and array of strings, or an array of frames with 'value
and 'text
slots.'okCancelDefaultOk
, 'okCancelDefaultCancel
, 'yesNoDefaultYes
, and 'yesNoDefaultN
o. They do the obvious thing, setting the default key as specified and the close key to Cancel or No if those aren't the default. However, using these symbols on a Newton 2.0 OS device will result in the "OK" and "Cancel" buttons always being displayed, even if you specify 'yesNoDefaultYes
or 'yesNoDefaultNo
. buttonList
argument allows an additional slot, called 'keyValue
. Supported values for this slot are the symbols 'default
and 'close
, or NIL/not present. 'default
makes the button the default key, and 'close
makes the button activate with the close key. Any other value will cause a problem in the current Newton 2.1 implementation. The keyValue
slot is ignored on the Newton 2.0 OS.'yesNoDefaultYes
and 'yesNoDefaultNo
symbols if you intend to run on both Newton 2.0 and 2.1 devices. Instead, use one of these specifiers: '[{text: "Yes", value: TRUE, keyValue: default}, {text: "No", value: NIL, keyValue: close}]
'[{text: "Yes", value: TRUE}, {text: "No", value: NIL, keyValue: default}]