![]() | Programming Guide | WideStudio Index Table of contents |
How to add the event procedure on the programs
You can add the event procedure with the method: WSCbase::addProcedure().Add the event procedure as follows.
The method Description addProcedure(WSCprocedure*) Add the new event procedure. def _new_event_procedure(object) # a sample of the event procedure. end def event_procedure(object) # Create the procedure instance which name is "new proc". # The trigger is WSEV_MOUSE_IN (MOUSE_IN trigger.) object.addProcedure("new-ep","_new_event_procedure",Mpfc::WSEV_MOUSE_IN) end
Copyright(C) T. Hirabayashi, 2000-2002 | Last modified: Oct 27, 2002 |