[Daniel Boulet asks about simulating GUI events] "Graphics Programming in Icon" describes an IPL procedure Enqueue() from enqueue.icn which let's you queue up events on a window. This is a lower level approach which should also work for GUIs.
I have also used the approach suggested in Daniel's handle_DropDown method, creating a new _Event() instance and passing it into a method call. Class _Event() is documented in the Unicon book appendix on the Unicon Component Library, although the source code is the primary reference. Despite being underdocumented, it is not too complex to figure out what values to put in an _Event() instance, perhaps by writing out values from a non-simulated occurrence of the same event. Note that the _Event() class and event handling model changes substantially in Robert Parlett's new/upcoming version of the GUI classes, and that he is more qualified than I to describe the changes and discuss what it takes to migrate from the old GUI classes to the new GUI package (the old _Event() to the new GUI::Event() abstraction, and so forth). If you can achieve your simulation goals using Enqueue() that might work across GUI versions, while creating your own _Event() or GUI::Event() instances probably will not. Clint ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Unicon-group mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unicon-group
