##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: August 2016 # Modified: 2016-10-28/10:52-0400 ##+ # # Alert.icn, visual/audible alert # link ximage procedure main() # Alert needs to have a default window, &window needs to be non null write("Expect an error 140") &error := 1 w := Alert() write("Error ", &errornumber, ": ", &errortext) # now Alert will have a resource to use &window := open("title", "g", "canvas=hidden") w := Alert() write(ximage(w)) close(&window) end