Re: EVENT_FUNCS [message #16153 is a reply to message #16126] |
Fri, 02 July 1999 00:00  |
rmlongfield
Messages: 68 Registered: August 1998
|
Member |
|
|
In article <7l9au6$3cf$1@nnrp1.deja.com>,
davidf7203@my-deja.com wrote:
> 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.
Aha, bookmark David's message folks! This is the FIRST time I have seen
written in plain english what the EVENT_FUNC actually returns and how
and where it returns it! David Fanning has used this in the past (I
struggled with a list item widget of his a long time ago with little
success understanding it until now).
Thanks David, and Phil for the asking!
Rose
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
|
|
|