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

Home » Public Forums » archive » Re: EVENT_FUNCS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: EVENT_FUNCS [message #16083] Tue, 29 June 1999 00:00
Alex Schuster is currently offline  Alex Schuster
Messages: 124
Registered: February 1997
Senior Member
davidf7203@my-deja.com wrote:

> P.S. Did I ever mention that I *love* IDL. :-)

Yes, you did:

http://www.deja.com/ [ST_rn=ps]/qs.xp?ST=PS&QRY=%22love+IDL%22&defaultOp= AND&DBS=1&OP=dnquery.xp&LNG=ALL&subjects=&am p;groups=comp.lang.idl-pvwave&authors=davidf@dfanning.com


Alex
--
Alex Schuster Wonko@weird.cologne.de PGP Key available
alex@pet.mpin-koeln.mpg.de
Re: EVENT_FUNCS [message #16094 is a reply to message #16083] Tue, 29 June 1999 00:00 Go to previous message
davidf7203 is currently offline  davidf7203
Messages: 12
Registered: August 1998
Junior Member
Phil Aldis writes:

> Can anyone possibly describe exactly how event _funcs work.

Event handler functions work exactly like event handler procedures,
with this exception: they return a value. If that return value
is anything else besides a structure that has ID, TOP, and
HANDLER fields defined as long integers, the return value is ignored
and the event handler function acts *exactly* like an event handler
procedure. But if that return value is a structure with those
fields, the return value is treated as an event structure and it
is passed up the widget hierarchy just as all events are passed.

So you can take an event into a function event handler and either
pass it along untouched by human hands, or you can manipulate the
hell out of it and pass it along as anything your devious heart
desires. For example, I have a colored button compound widget that
is really a draw widget tricked up to *look* like a button. When
the user clicks on the button I take the draw widget event into
my event handler and repackage it to make it *look* like a
button event (heh, heh). The user doesn't know the difference.
They think (ho boy!) that they are using a colored button widget
because they get *button* events from it. :-)

Cheers,

David

P.S. Did I ever mention that I *love* IDL. :-)


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Newbie: Some advice needed
Next Topic: Re: objects ROIS

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

Current Time: Wed Oct 08 18:52:59 PDT 2025

Total time taken to generate the page: 0.00453 seconds