Announcement

Collapse
No announcement yet.

drawTextAbsolute major change?

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

  • drawTextAbsolute major change?

    Hello everyone!

    I wrote an EFS Study for a client that plots horizontal lines at certain price levels. On the last plotted bar, just below the lines, I had labels to identify each line.

    Since upgrading to 7.9.1, the text labels have changed. The font is tiny and the text appears to have an invisible background, that now overwrites the horizontal lines. I have attached screenshots.

    Curious if this was an intentional change and if so, how can we get things how they were. And if it is an accidental change, when would this be fixed?

    Does anybody have a fix to get things how they were?

    Thanks.

    Jay
    Attached Files

  • #2
    Hello Jay,

    Please post your code you're using to draw the text labels and I'll look into it.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      This is the new code I'm using, with the text being bolded and 12pt.....

      drawTextAbsolute(0,vLastArray[1],"Dir",Color.yellow,null,Text.RIGHT|Text.BOLD,null ,12,"65");


      This is the original code, that didn't have (or need) font style or size defined.....

      drawTextAbsolute(0,vLastArray[1],"Dir",Color.yellow,null,Text.RIGHT,Text.Fixedsys, null,"65");

      I tried the Text.ONTOP and that didn't help.

      Thanks for any advice!


      Jay

      Comment


      • #4
        Hello Jay,

        There were some minor changes to the text functions. I couldn't come up with a work-around to get rid of the slight overlap you're seeing. With 7.9.1, you will need to specify a font and size to match the previous versions. Is the new code you are using adequate for your needs?
        Jason K.
        Project Manager
        eSignal - an Interactive Data company

        EFS KnowledgeBase
        JavaScript for EFS Video Series
        EFS Beginner Tutorial Series
        EFS Glossary
        Custom EFS Development Policy

        New User Orientation

        Comment


        • #5
          Thanks for your response.

          Yes, I tried putting in font type, style and size and was able to recreate how the plots looked before. But we still have the overlap that we can't seem to workaround.

          So, with this invisible box that goes around text.....is there anyway that this can be fixed? What was the purpose of this change?

          Thanks.


          Jay

          Comment


          • #6
            Hello Jay,

            There were some changes made to adjust the spacing between the AboveBar/BelowBar location constants. This may have had some affect on the spacing of the other text objects that's causing that overlap. I'm not certain this is the problem, but I will bring this up with the development team to look into.
            Jason K.
            Project Manager
            eSignal - an Interactive Data company

            EFS KnowledgeBase
            JavaScript for EFS Video Series
            EFS Beginner Tutorial Series
            EFS Glossary
            Custom EFS Development Policy

            New User Orientation

            Comment

            Working...
            X