WideStudio/MWT Logo
WideStudio/MWT
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(char*,char*,long) Add the new event procedure.

Add the event procedure as follows.

def _new_event_procedure(object):
# a sample of the event procedure.
  return
mwt.WSGFfunctionRegister("_new_event_procedure",_new_event_procedure)

def event_procedure(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",mwt.WSEV_MOUSE_IN);
  return
mwt.WSGFfunctionRegister("event_procedure",event_procedure)


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