Wide Studio Programmer's Guide

Wide Studio Home
Up to


How to move the position of the instances

You must clear the instances to move the poisition of it as follows.

void event_procedure(WSCbase* object){
  //clear the instance.
  object->clear();
  //set invisilbe.
  object->setVisible(False);
  //move the poisition.
  object->setProperty(WSNx,100); 
  object->setProperty(WSNy,100); 
  //set visible.
  object->setVisible(True); 
}

There are some cases that an afterimage is left,if you move the position of the instace which has no window resource. Not to left if ,you have to clear the instance before move the position.
The instance which has a window resource is automaticary cleared.
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