Re: Event handlers...
- From: "swansnow" <schultz@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: 27 Jan 2006 05:57:33 -0800
>and it is this classname prefix which is missing from your code and
>so upsetting the compiler.... So method code _must_
>know which instance is calling it.
Does this mean, then, that an event handler has a "self" variable?
What if the event handler is a class procedure of a different class,
when I call it, what is in the "self" variable? (Is it even possible to
have the event handler be a class procedure?)
How would I set up a class to use an event handler defined in a
different class? I have some kinds of events which I want handled in
the same way across multiple forms, like validating keypresses...
-Corinna
.
- Follow-Ups:
- Re: Event handlers...
- From: Rob Kennedy
- Re: Event handlers...
- From: Maarten Wiltink
- Re: Event handlers...
- References:
- Event handlers...
- From: swansnow
- Re: Event handlers...
- From: Rob Kennedy
- Re: Event handlers...
- From: alanglloyd@xxxxxxx
- Event handlers...
- Prev by Date: Re: Event handlers...
- Next by Date: Re: Folding Editor
- Previous by thread: Re: Event handlers...
- Next by thread: Re: Event handlers...
- Index(es):
Relevant Pages
|