Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Remove objects

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

    Remove objects

    I would like to remove lines drawn on the main panel before I start drawing a new set of lines. I tried using.....
    RemoveDrawObject ("Line1").....
    RemoveDrawObject("Line2")........
    just before I recalculated and redrew the lines.

    My approach doesn't seem to work.

    Any suggestions for how best to remove a line before I draw the next line?

    Thanks............

    #2
    photog53, you could just redraw using the same tag id for the drawing object, this would just create one always updating draw object then and you would not have draw and remove in your code which should simplify matters.

    Comment


      #3
      Got it!!!!
      (took your advice....and then added an 'private int' to the tag that I could either increment or not which allows me to control seeing all lines or just the current lines)

      As always you guys are great!!!

      (very patient with basic questions and always helpful answers)
      Last edited by photog53; 06-08-2010, 01:10 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      43 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      25 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      163 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      98 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      158 views
      2 likes
      Last Post CaptainJack  
      Working...
      X