comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » event_pro for compound widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: EVENT_PRO [message #73768 is a reply to message #40935] Mon, 29 November 2010 11:40 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> This means that in a Catalyst application a single
> "event" might be sent to several different "event
> handlers", rather than to a single event handler,
> as happens in a strict widget program.
>
> In Catalyst you assign an "event handler" to a widget
> with the EVENT_OBJECT keyword. There is an optional
> EVENT_METHOD keyword that can be used select the actual event
> method for this event object. Otherwise, the event
> is always sent to the EventHandler method of the
> event object.

I should probably point out that "event objects" don't
have to be widgets. In fact, most of the time they
are not. If you changed a colorbar object, for example,
you might wish to update any number of image objects
with the new color information. In this case, the
event objects would be these image objects who need
to know about the colorbar "event".

There is a parallel system of "messages" in the
Catalyst Library that act in a similar way. An
object can register an "interest" in the actions of
another object and be "notified" when that action
occurs. This is really just a more specific instance
of "event handling" in objects.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EVENT_PRO
Next Topic: Notable Coyote Program Updates

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 19:53:20 PDT 2025

Total time taken to generate the page: 0.00227 seconds