![]() | Programming Guide | WideStudio Index Table of contents |
How to get the children of the instance
You can get the children which the instance contains with the following method.
The method Description mpfc::WSCbase_getChildInstance($instance_name) Returns the child by the instance name How to get the child by the specified name
You can get the child by the specified name with the method: mpfc::WSCbase_getChildInstance();use mpfc; sub event_procedure { my ($object) = @_; # get the child which name is "newpbtn001" $child = mpfc::WSCbase_getChildInstance($object,"newpbtn001"); if ($child != 0){ # the child exists. mpfc::WSCbase_setVisible($child,$mpfc::True); } return; } 1;In the example, WSCbase::getChildInstance() seeks the child which name is "newpbtn001" from the instance: "object" recursively, and returns it if finds or returns NULL if not.
Copyright(C) T. Hirabayashi, 2000-2004 | Last modified: Feb 25, 2004 |