Announcement

Collapse
No announcement yet.

setBar..... Instructions Not Doing What I Expect

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • setBar..... Instructions Not Doing What I Expect

    The following instructions to set bar color, style and thickness result in only one dashed line instead of two.
    Colors are two red, one green and one blue instead of the four different expected colors.
    Three of the lines are the same thickness instead of four different thicknesses.

    The EFS Glossary definitions for the three functions say to use only one parameter for each. I used two parameters in setBarFgColor( ) because in one of my previous forum questions someone answered/suggested that I use two parameters.
    ******************
    setBarFgColor(Color.magenta,1);setBarFgColor(Color .red,2);setBarFgColor(Color.green,3);setBarFgColor (Color.black,4);
    setBarStyle(PS_DASH);setBarStyle(PS_SOLID);setBarS tyle(PS_SOLID);setBarStyle(PS_DASH);
    setBarThickness(1);setBarThickness(2);setBarThickn ess(3);setBarThickness(4);
    return new Array(output1,output2,output5,output6);

  • #2
    the outputs in the array start with number zero (0)

    set your first color, barstyle and thickness to 0

    the second is number one (1)
    etc.

    see if that helps


    setBarFgColor(Color.magenta,0);
    setBarFgColor(Color.red,1);
    setBarFgColor(Color.green,2);
    setBarFgColor(Color.black,3);
    setBarStyle(PS_DASH,0);
    setBarStyle(PS_SOLID,1);
    setBarStyle(PS_SOLID,2);
    setBarStyle(PS_DASH,3);
    setBarThickness(1,0); //thickness is 1 for dashed magenta line, etc.
    setBarThickness(2,1);
    setBarThickness(3,2);
    setBarThickness(4,3);

    return new Array(output1,output2,output5,output6);

    Comment


    • #3
      Thanks Zeller4, it worked great.
      Much appreciated.

      Comment

      Working...
      X