WideStudio Logo
WideStudio
Application Builder User's Guide
WideStudio Index
Table of contents


What is the Event procedure?

The event procedure is used to do something when an event is fired, in order to do a complicated task which is too difficult to realize within the object. You can code an event procedure with usual knowledge of the C++ language.

It has a trigger and a client instance, and is executed when the trigger is fired on the client. See the Programming Guide. The following shows what the event procedure has.



[The event procedure]



The function for the event procedures

The function has one parameter in which a pointer to the client object is passed. The following function is a template generated by the application.


#include <WScom.h>
#include <WSCfunctionList.h>
#include <WSCbase.h>

//----------------------------------------------------------
//Function for the event procedure
//----------------------------------------------------------
void sample(WSCbase* object){
  //do something...

}
static WSCfunctionRegister  op("sample",(void*)sample);


Document Release 3.20 for WideStudio ver 3.20, Oct 2002


WideStudio documents index | Table of contents

Copyright(C) T. Hirabayashi, 2000-2002 Last modified: Oct 27, 2002