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


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

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

자식 취득 멤버 함수 기능
mwt::WSCbase mwt::WSCbase_getChildInstance(\$instance_name) 객체명칭지정에의한 취득





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

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

use mwt;

sub event_procedure {
  my ($object) = @_;
  # 특정의 자식객체를 명칭으로 지정하여 취득
  $child = $object->getChildInstance("newvbtn_001");
  if ($child != 0){
    # 특정의 자식객체에 접근
    $child->setVisible($mwt::True);
  }
  return;
}
1;

object 가 배치되여있는 자식객체를 명칭지정으로 취득하는 것입니다. 명칭지정으로 자식객체를 취득할 경우, 재기적(자식객체까지)으로 검색합니다. 혹시 지정한 명칭의 객체가 못찾을 경우, None 이 돌려집니다.

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