WideStudio/MWT Logo
Programming Guide
WideStudio/MWT Index
Table of contents

How to add the event procedure on the programs

You can add the event procedure with the method: WSCbase::addProcedure().

The method Description
addProcedure(WSCprocedure*) Add the new event procedure.

Add the event procedure as follows.

void _new_event_procedure(WSCbase*){
//a sample of the event procedure.

void event_procedure(WSCbase* object){ 
  //Create the procedure instance which name is "new proc".
  //The trigger is  WSEV_MOUSE_IN (MOUSE_IN trigger.)
(A)  WSCprocedure* ep = new WSCprocedure("new proc",WSEV_MOUSE_IN);
(B)  ep->setFunction(_new_event_procedure,"_new_event_procedure");
(C)  object->addProcedure(ep);

Document Release 3.90 for WideStudio/MWT ver 3.90, Jul 2005

WideStudio/MWT documents index | Table of contents

Copyright(C) WideStudio/MWT Development Team, 1999-2005 Last modified: Jul 31, 2005