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


객체에 새로운 이벤트 프로시저를 설정하기에는

객체에 새로운 이벤트 프로시저를 설정하기에는 멤버 함수 addProcedure() 를 사용합니다.

이벤트 프로시저 추가 멤버 함수 기능
addProcedure(char*,char*,long) 새로운 이벤트 프로시저의 추가

이벤트 프로시저 객체를 다음과 같이 생성합니다. 이벤트 프로시저 명칭, 프로시저 명칭, 트리거(trigger)를 지정합니다.

def _new_event_procedure(object):
# 신규 추가되는 이벤트 프로시저 함수
  return
mwt.WSGFfunctionRegister("_new_event_procedure",_new_event_procedure)

def event_procedure(object):
  #"new-ep"란 EP명칭의 이벤트 프로시저의 작성
  # 트리거(trigger) WSEV_MOUSE_IN (MOUSE_IN  트리거)
  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