##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September, 2016 # Modified: 2016-10-03/22:36-0400 ##+ # # Active.icn, demonstrate active event testing # link enqueue, evmux procedure main() window := open("Active sample", "g", "size=90,60", "canvas=hidden") Enqueue(window, &lpress, 11, 14, "", 2) Enqueue(window, &lrelease, 12, 15, "", 3) w := Active() write(image(w)) e := Event(w, 1) write("event ", e, " at ", &x, " ", &y) e := Event(w, 1) write("event ", e, " at ", &x, " ", &y) close(window) end