Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unlock Text

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

    Unlock Text

    Is it possible, code wise, to have text that is NOT locked on the chart

    eg some text at the top of a bar that you can grab and move around without having to 'unlock' - or have I missed a trick somewhere?

    #2
    i suppose with NT7 it can be done.

    heres a code snippet.

    Code:
    IText t = DrawText("txt" + CurrentBar,CurrentBar.ToString(),0,High[0],Color.Red);
    t.Locked = false;

    Comment


      #3
      lock

      Bukkan - many thanks for that - I don't quite see why support couldn't have come up with that?

      Comment


        #4
        Update

        IText is a little quirky - so if you produce IText from outside the OnBarUpdate the unlocking facility no longer works.

        Found this in help which is a bit brute force but it does the job in a manner of speaking...

        Code:
        // Loops through the DrawObjects collection
         foreach (IDrawObject draw in DrawObjects)
         {
         // Unlocks all draw objects for manual manipulation on the chart
            draw.Locked = false;
        }

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        181 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        334 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        258 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        358 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        187 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X