[GUI] GUIs and events/callbacks.

David Sankel camio@yahoo.com
Thu, 6 Mar 2003 19:33:51 -0800 (PST)


Hello,

  There has been some discussion between the event and
callback methods of connecting things.  Can someone
please explain, in practical terms, what the
advantages there are to the event method?  It sounds
like an interesting idea, but I don't think I
understand it at a practical level.

  The callback method is extremely intuitive for me:

set button [ onClick ~: (\a -> handlerFunction:a) ]

or
addClickHandler button handlerFunction

and when the button is clicked, it would run through
the list of handlerFunctions (perhaps concurrently).

Thanks,

David J. Sankel