![]() | 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(String,String,long) Add the new event procedure. //in new_event_procedure.java public class new_event_procedure { protected static void new_event_procedure(WSCbase object){ // a sample of the event procedure. } } //in event_procedure.java public class event_procedure { protected static void event_procedure(WSCbase object){ // Create the procedure instance which name is "new-ep". // The trigger is WSEV_MOUSE_IN (MOUSE_IN trigger.) object.addProcedure("new-ep","new_event_procedure.new_event_procedure",Mpfc.WSEV_MOUSE_IN); } }
Copyright(C) WideStudio Development Team, 1999-2005 | Last modified: Jan 05, 2005 |