Re: GUIs and events/callbacks.

David Sankel <[email protected]>
Newsgroups gmane.comp.lang.haskell.gui
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.