Announcement

Collapse
No announcement yet.

Change drawtext feature

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

  • Change drawtext feature

    In the code below I can change the color no problem. this is edited version but the whole preMain is there.

    But instead of it inserting a Red Dot, I want a Triangle or Diamond
    and Tried taking out Wingdings and input Triangle or Diamond in place of wingdings and it dont work.


    function preMain() {
    setStudy(true);
    setStudyTitle("Stops");
    setCursorLabelName("Stops");
    setDefaultBarFgColor(Color.blue);
    setDefaultBarThickness(1);
    setPlotType(PLOTTYPE_DOT);


    drawTextRelative(0,vSTUDY.getValue(Study.STOP),"l" ,Color.red,null,null,"Wingdings",8);


    Thanks,

    Pat

  • #2
    Re: Change drawtext feature

    Pat
    Use the drawShapeRelative() function to draw those shapes (see the link to the EFS KnowledgeBase article for the syntax)
    Alex


    Originally posted by trader494
    In the code below I can change the color no problem. this is edited version but the whole preMain is there.

    But instead of it inserting a Red Dot, I want a Triangle or Diamond
    and Tried taking out Wingdings and input Triangle or Diamond in place of wingdings and it dont work.


    function preMain() {
    setStudy(true);
    setStudyTitle("Stops");
    setCursorLabelName("Stops");
    setDefaultBarFgColor(Color.blue);
    setDefaultBarThickness(1);
    setPlotType(PLOTTYPE_DOT);


    drawTextRelative(0,vSTUDY.getValue(Study.STOP),"l" ,Color.red,null,null,"Wingdings",8);


    Thanks,

    Pat

    Comment

    Working...
    X