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.

use mwt;

sub event_procedure {
  my ($object) = @_;
  # clear the instance.
  $object->clear();
  # set invisible.
  $object->setVisible($mwt::False);
  # move the position.
  $object->setProperty("x",100); 
  $object->setProperty("y",100); 
  # set visible.
  $object->setVisible($mwt::True); 
  return;
}
1;

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.80 for WideStudio ver 3.80, Jan 2005


WideStudio documents index | Table of contents

Copyright(C) WideStudio Development Team, 1999-2005 Last modified: Jan 05, 2005