##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: November 2016 # Modified: 2016-11-12/13:50-0500 ##+ # # Pending.icn, demonstrate pending event test # link enqueue, evmux, ximage procedure main() window := open("Event", "g", "size=20,20", "canvas=hidden") # insert an event into the queue, left press, control and shift Enqueue(window, &lpress, 11, 14, "cs", 2) L := Pending(window) write(ximage(L)) e := Event(window) write(image(e)) # a side effect of the Event function is keywords settings write("&x:", &x) write("&y:", &y) write("&row:", &row) write("&col:", &col) write("&interval:", &interval) write("&control:", &control) write("&shift:", &shift) write("&meta:", &meta) close(window) end