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


객체에 배치되여있는 자식 객체를 취득하기에는

자식 객체를 취득할 함수에는, 다음과 같은 메서드를 사용합니다.

자식 취득 멤버 함수 기능
WSCbase getChildInstance(char*) 객체명칭 지정에의한 취득





특정의 자식 객체를 취득하기에는

특정의 자식 객체를 취득하기에는, 멤버 함수 getChildInstance() 를 사용합니다.

public class event_procedure {
  protected static void event_procedure(WSCbase object){
    // 특정의 자식 객체의 명칭을 지정해서 취득
    WSCbase child = object.getChildInstance("newvbtn_001");
    if (child != null){
      // 특정의 자식 객체에 접근(access)
      child.setVisible((short)Mwt.True);
    }
  }
}

object 가 배치되여있는 자식 객체를 명칭 지정으로 취득하는곳입니다. 명칭 지정의 자식 객체를 취득할 경우, 재귀저(자식 객체에 배치된 자식 객체까지)으로 검색합니다. 혹시 지정된 명칭의 객체가 못찾은 경우, nil 가 돌입니다.

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