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 kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        50 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        36 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        44 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        33 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        152 views
        0 likes
        Last Post SalmaTrader  
        Working...
        X