show popup dialog with given title and message and return result
Parameters
popup title :string
message :string
Attributes
info
show informational popup
warning
show popup as a warning
error
show popup as an error
question
show popup as a question
ok
show an OK dialog (default)
okCancel
show an OK/Cancel dialog
yesNo
show a Yes/No dialog
yesNoCancel
show a Yes/No/Cancel dialog
retryCancel
show a Retry/Cancel dialog
retryAbortIgnore
show an Abort/Retry/Ignore dialog
literal
return the literal value of the pressed button
Returns
:logical
:literal
Examples
copy
popup "Hello!" "This is a popup message"
; shows a message dialog with an OK button
; when the dialog is closed, it returns: true
copy
if popup.yesNo "Hmm..." "Are you sure you want to continue?" [
; a Yes/No dialog will appear - if the user clicks YES,
; then the function will return true; thus we can do what
; we want here
]
copy
popup.okCancel.literal "Hello" "Click on a button"
; => 'ok (if user clicked OK)
; => 'cancel (if user clicked Cancel)