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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      583 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      339 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X