Re: Event handlers...



>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

.



Relevant Pages

  • Re: Event handlers...
    ... is already taken for a different context object. ... > 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, ... or a classtype reference in a variable will do. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Trouble with DeselectAll()
    ... DoCmdbehaves exactly like calling DeselectAll(), ... Calling DoCmdtwice also works. ... from an event handler seems to be what is broken. ...
    (microsoft.public.visio.developer)
  • Re: Spanning thread in WS Async Call
    ... I am calling a web service asynchronously as follows ... I want to span thread here to do some operation on the the result data and ... Why don't you do your processing within the event handler? ... John Saunders | MVP – Windows Server System – Connected System Developer ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: How to programmatically invoke Click event of the Button ?
    ... Or if I need to invoke an event of Label class? ... click event handler should call the TakeOrdermethod. ... you can call TakeOrderinstead of calling the ... was just calling your button's OnClick() method to do what the button was ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Idea
    ... its context object could be the control. ... that Sender is a requisite in every event handler, ... And I take it you mean the called code, not the calling code? ... > called in which you pass in a method pointer to set values in the ...
    (comp.lang.pascal.delphi.misc)