| Programming Guide | WideStudio Index Table of contents |
객체에 새로운 이벤트 프로시저를 설정하기에는
객체에 새로운 이벤트 프로시저를 설정하기에는 멤버 함수 addProcedure() 를 사용합니다.이벤트 프로시저 객체를 다음과 같이 생성합니다. 이벤트 프로시저 명칭, 프로시저 명칭, 트리거(trigger)를 지정합니다.
이벤트 프로시저 추가 멤버 함수 기능 addProcedure(char*,char*,long) 새로운 이벤트 프로시저의 추가 def _new_event_procedure(object): # 신규 추가되는 이벤트 프로시저 함수 return mpfc.WSGFfunctionRegister("_new_event_procedure",_new_event_procedure) def event_procedure(object): #"새로운 EP"란 EP명칭의 이벤트 프로시저의 작성 # 트리거(trigger) WSEV_MOUSE_IN (MOUSE_IN 트리거) object.addProcedure("new-ep","_new_event_procedure",mpfc.WSEV_MOUSE_IN); return mpfc.WSGFfunctionRegister("event_procedure",event_procedure)
| Copyright(C) WideStudio Development Team, 1999-2004 | Last modified: May 25, 2004 |