TextWindow.update


update()

Perform a paint of this window. The repainting of the window takes considerable time. Therefore when processing a script, by default LUSAS Modeller only repaints the window when new text comes along and when no redraw has taken place for at least half a second (approximately). Therefore in a script or customisable dialog which shows infrequent messages it is possible for the most recent message(s) to be shown later than required. Calling this function causes an immediate repaint and therefore avoids this problem

Argumentsnone 
Return valuenone 

Example

To add a line of text and ensure it is seen immediately


 call textWin.writeLine("hello world")
 call textWin.update()
 

Back to TextWindow

Back to Overview