![]() | 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.let event_procedure obj = (* clear the instance. *) obj -> clear (); (* set invisible. *) obj -> setVisible(_False); (* move the position. *) obj -> setProperty("x",100); obj -> setProperty("y",100); (* set visible. *) obj -> setVisible(_True); () let _ = Callback.register "event_procedure" event_procedureThere are some cases that an afterimage is left,if you move the position of the instance, which has no window resource. If you don”Ēt want it left, you have to clear the instance before moving the position.
The instance which has a window resource is automaticary cleared.
Copyright(C) WideStudio Development Team, 1999-2005 | Last modified: Jan 05, 2005 |