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

Home » Public Forums » archive » Event handler as an object method ??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Event handler as an object method ?? [message #41601] Tue, 09 November 2004 01:55 Go to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Hi,is there a reason why an object method can't be use as an event handler?

I just created an object that "contains" a WIDGET_DRAW. I'd like that
the event ocurred on WIDGET_DRAW was handled by a method of my class,
but EVENT_FUNCTION and EVENT_PRO keywords not accpet a method.

The solution i have adopted is to catch the event of WIDGET_DRAW outside
of the object (on a WIDGET_BASE where i put the object (realy de
WIDGET_DRAW)) and redirect it to the method i want
(MyObject->EventHandler), but this is an ugly solution.

Any ideas ??
Thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: f77 unformatted file reading error
Next Topic: UTM mapping problems

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

Current Time: Fri Oct 10 13:32:55 PDT 2025

Total time taken to generate the page: 0.23961 seconds