Wide Studio Programmer's Guide

Wide Studio Home
Up to


How to get the parent instace

You can get the parent instace with the method: WSCbase::getParent().
In the following sample, it acquires the parent instance which places the instace "object", and set False to the visibility of the parent.
void event_procedure(WSCbase* object){
  //get the parent instance.
  WSCbase* parent = object->getParent();
  //access the parent instance.
  parent->setVisible(False);
}


How to get the parent top level window

You can get the parent window instance with the method: WSCbase::getParentWindow().
In the following sample, it acquires the parent window instance, and pops down the window. Sometimes this scene is found when closing window by a button instance.
void event_procedure(WSCbase* object){
  //get the parent window.
  WSCbase* win = object->getParent();
  //popdown the window.
  win->setVisible(False);
}

Document Release 3.0

For Use with Wide Studio Release 3.0, Summer 2002


Wide Stuido Home | Up to

Copyright(C) T. Hirabayashi, 2000-2002 Last modified: June 20, 2002