../pvss.htm menu.gif basics.gif

"flush"

Updates the trend and redraws it.

Synopsis

setValue (string shape, "flush");

shape.flush ();

Parameters

    Parameter

    Description

    shape

    Name of the object

Description

Since the majority of changes are not immediately visible in the trend, this attribute can be used to redraw a graphic.

IconExample

In this example, new values are added to a curve trend. Since this would not be immediately visible, the graphic is redrawn after the change using "flush".

main()

{

shape bt=getShape("BarTrend1");

dyn_float dx, dy;

...

// New values

dx=makeDynFloat(10, 20, 30, 40, 50);

dy=makeDynFloat(40, 70, 50, 10, 30);

// Set

setValue(bt, "data", dx, dy);

// Redraw

bt.flush();

...

}

Relates to

Bar trend

See also

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved