WideStudio/MWT Logo
WideStudio/MWT
Programming Guide
WideStudio/MWT Index
Table of contents


How to draw the instances

You can use the following methods to draw the instances.

To control drawing Description
setAbsoluteDraw(Boolean) Sets the flag of forced drawing.
draw() draws if needs.
redraw() clears and draws
cdraw() draws the instance and its children.
clear() clears the instance.
update() draws if needs.



How to update the instance

Usually, it executes updating the instance at the end of the event procedures. If you want to update at once, you can do it with the method: update().

void event_procedure(WSCbase* object){
  //change a property.
  object->setProperty(WSNlabelString,"new text");
  //updating.
  object->update(); 
}

The method: update() updates the instance, if it needs to reflect the change of the properties.

How to draw the instance

There are following cases to draw the instances.

Document Release 3.90 for WideStudio/MWT ver 3.90, Jul 2005


WideStudio/MWT documents index | Table of contents

Copyright(C) WideStudio/MWT Development Team, 1999-2005 Last modified: Jul 31, 2005