WideStudio/MWT Logo
WideStudio/MWT
Programming Guide
WideStudio/MWT 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
$instance_name->getChildInstance() 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: mwt::WSCbase_getChildInstance();

use mwt;
                                                                                
sub event_procedure {
  my ($object) = @_;
  # get the child which name is "newvbtn_001"
  $child = $object->getChildInstance("newvbtn_001");
  if ($child != 0){
    # the child exists.
    $child->setVisible($mwt::True);
  }
  return;
}
1;

In the example, mwt::WSCbase_getChildInstance() seeks the child which name is "newvbtn_001" from the instance: "object" recursively, and returns it if finds or returns NULL if not.

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