Announcement

Collapse
No announcement yet.

TopRow1 in drawTextRelative doesn't display arrow

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

  • TopRow1 in drawTextRelative doesn't display arrow

    Hi,

    Does anyone know why the following code doesn't display the arrows?

    If I use "TopRow2" they show in the upper-most part of the chart so I'm wondering if there is something wrong with the coding for the "TopRow#" tags.

    [php]
    drawTextRelative(0,TopRow1,"\u00E9",Color.green,nu ll,Text.PRESET|Text.BOTTOM|Text.CENTER|Text.BOLD," Wingdings",10,"Up1\n"+ getCurrentBarCount());
    PHP Code:
     
    Thanks

    wayne

  • #2
    Re: TopRow1 in drawTextRelative doesn't display arrow

    waynecd
    The reason you are not seeing the arrows is because you are using Text.BOTTOM flag which aligns the bottom of the text with the assigned row (note that if you actually look closely to the top of the window you will actually see the bottom part of the arrows)
    Remove that flag and it will work as intended
    Alex


    Originally posted by waynecd
    Hi,

    Does anyone know why the following code doesn't display the arrows?

    If I use "TopRow2" they show in the upper-most part of the chart so I'm wondering if there is something wrong with the coding for the "TopRow#" tags.

    [php]
    drawTextRelative(0,TopRow1,"\u00E9",Color.green,nu ll,Text.PRESET|Text.BOTTOM|Text.CENTER|Text.BOLD," Wingdings",10,"Up1\n"+ getCurrentBarCount());
    PHP Code:
     
    Thanks

    wayne

    Comment


    • #3
      Hi Alex,

      Works great.

      By the way, your file share scripts have been very helpful.

      Thanks.

      wayne

      Comment

      Working...
      X