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

"xLines"

Defines how the x-lines are displayed.

Synopsis

setValue (string shape, "xLines", dyn_float DataX, dyn_float DataY1, dyn_float DataY2, dyn_string line, dyn_string color);

getValue (string shape, "xLines", dyn_float &DataX, dyn_float &DataY1, dyn_float &DataY2, dyn_string &line, dyn_string &color);

shape.xGrid (dyn_float DataX, dyn_float DataY1, dyn_float DataY2, dyn_string line, dyn_string color);

Parameters

Description

This attribute can be used to define precisely how the x-lines are displayed with the X values of the lines specified in the array "DataX" and the y-coordinates in the arrays "DataY1" and "DataY2". An individual line type and color string is defined for each line via the arrays "line" and "color".

IconExample

main()

{

   shape bt=getShape("BarTrend1");

   dyn_float dx, y1, y2;

   dyn_string line, col;

   string s;

   // Coordinates

   dx=makeDynFloat(20, 40, 50);

   y1=makeDynFloat(10, 20, 30);

   y2=makeDynFloat(50, 60, 70);

   // Colors and lines

   col=makeDynString("Red", "Green", "Yellow");

   s="[solid,oneColor,JoinMiter,CapNotLast,4]";

   line=makeDynString(s, s, s);

   // Setting the values

   setValue(bt, "xLines", dx, y1, y2, line, col);

   bt.flush(); // Update bar trend

}

Assignment

Bar trend

See also

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved