Created
April 6, 2016 06:58
-
-
Save iArnold/fb64c0c27cef99675c0cdf87a495ab31 to your computer and use it in GitHub Desktop.
Alert window example by Dockimbel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert: function [ | |
"Displays an alert message" | |
msg [string!] "Message to display" | |
][ | |
view/flags [ | |
t: text msg center return | |
b: button "ok" [unview] | |
do [b/offset/x: t/offset/x + (t/size/x - b/size/x / 2)] | |
][modal popup] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment