WideStudio Logo
WideStudio
Programming Guide
WideStudio Index
Table of contents


How to move the position of the instances

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

void event_procedure(WSCbase* object){
  //clear the instance.
  object->clear();
  //set invisible.
  object->setVisible(False);
  //move the position.
  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 instance 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.20 for WideStudio ver 3.20, Oct 2002


WideStudio documents index | Table of contents

Copyright(C) T. Hirabayashi, 2000-2002 Last modified: Oct 27, 2002