Announcement

Collapse
No announcement yet.

Drawing relative to visible pane?

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

  • Drawing relative to visible pane?

    Is there an easy way for me to position a text box relatively inside a pane, using drawText... which would be, say 20% from the right and 20% down from the top of the visible area on the main price pane?

    I don't mind if the EFS study has to recalculate this positioning dynamically. I know how to draw boxes at a given price level, and with a horizontal offset, but these are affected by the scaling of price inside the pane. I guess I'd like to be able to get coordinates of the pane, and be able to place something within that coordinate grid.

    Hope this question is clear.

    TIA

  • #2
    bfry5282
    Use drawTextXxxx with the optional pixel controls or use drawTextPixel (see the EFS Help files for the correct syntax)
    Alex

    Comment


    • #3
      How do I get the coordinates for the pane, so that I could accomplish this? Let's say I wanted to put control buttons along the top of the visible pane, for example. How could I ensure that they would remain at the top of the pane, even though the price scale varied, or the horizontal scaling varied?

      TIA

      Comment


      • #4
        bfry5282
        Use the Text.RELATIVETOTOP and Text.RELATIVETOLEFT flags
        Alex

        Comment

        Working...
        X