![]() | Programming Guide | WideStudio Index Table of contents |
How to execute the event procedures of the instances
You can execute the event procedures which the instances have with the method: WSCbase::execProcedure .
Executing the event procedure Description execProcedure(char*) Executing by name execProcedure(long) Executing by trigger How to execute the event procedures by the specified name
You can execute the event procedures which the instances have by the specified name with the method: WSCbase::execProcedure(char*).def event_procedure(object) #Execute the event procedures which name is "setup" object.execProcedure("setup") endIf exists the event procedures of the instance: "object", which name is the same as the specified one, it will be executed ,but if not, does nothing.How to execute the event procedures by the specified trigger
You can execute the event procedures that the instances have by the specified trigger with the method: WSCbase::execProcedure(int).def event_procedure(WSCbase* object) # Execute the procedures which trigger is WSEV_ACTIVATE. object.execProcedure(Mwt::WSEV_ACTIVATE) endIf exists the event procedures of the instance: "object", which trigger is the same as the specified one, it will be executed, but if not, does nothing.
Copyright(C) WideStudio Development Team, 1999-2005 | Last modified: Jan 05, 2005 |