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


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

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

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

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

//in new_event_procedure.java
public class new_event_procedure {
  protected static void new_event_procedure(WSCbase object){
    // 신규 추가되는 이벤트 프로시저 함수
  }
}

//in event_procedure.java
public class event_procedure {
  protected static void event_procedure(WSCbase object){
    //"new-ep"란 EP명칭의 이벤트 프로시저의 작성
    // 트리거(trigger) WSEV_MOUSE_IN (MOUSE_IN  트리거(trigger))
    object.addProcedure("new-ep","new_event_procedure.new_event_procedure",Mwt.WSEV_MOUSE_IN);
  }
}


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