| Programming Guide | WideStudio Index Table of contents |
객체에 배치되여있는 자식 객체를 취득하기에는
자식 객체를 취득할 함수에는, 다음과 같은 메서드를 사용합니다.
자식 취득 멤버 함수 기능 mpfc::WSCbase mpfc::WSCbase_getChildInstance(\$instance_name) 객체명칭지정에의한 취득
특정의 자식 객체를 취득하기에는
특정의 자식 객체를 취득하기에는, 멤버 함수 mpfc::WSCbase_getChildInstance() 를 사용합니다.use mpfc; sub event_procedure { my ($object) = @_; # 특정의 자식객체를 명칭으로 지정하여 취득 $child = $object->getChildInstance("newpbtn001"); if ($child != 0){ # 특정의 자식객체에 접근 $child->setVisible($mpfc::True); } return; } 1;object 가 배치되여있는 자식객체를 명칭지정으로 취득하는 것입니다. 명칭지정으로 자식객체를 취득할 경우, 재기적(자식객체까지)으로 검색합니다. 혹시 지정한 명칭의 객체가 못찾을 경우, None 이 돌려집니다.
| Copyright(C) WideStudio Development Team, 1999-2004 | Last modified: May 25, 2004 |