Announcement

Collapse
No announcement yet.

removing drawn objects

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

  • removing drawn objects

    There was a thread some time back that discussed in detail the overhead associated with drawn objects and the removal of them after a specified number had been drawn and the thread included efs code showing how to do this. Does anyone remember which thread it was? I have searched using draw and still can not find it.

    Best Regards,

    Alan

  • #2
    I don't recall the thread, but your answer is below.

    First, you have to determine how many different "drawn objects" you want to control. Lets assume you have (1) lines and (2) shapes.

    If you wanted to control these AS ONE, then you only need one resetting draw variable (as shown below). If you want to control these uniquely, then you need two (one for each item).

    PHP Code:
    var GraphID1 0;
    var 
    GraphID2 0;

    function 
    main() {

    // Limit of only 100 items drawn at any given time.

       
    fIncrementID1(100);  // increments/removes drawn item
               
    drawShapeRelative(0high(0),  Shape.DIAMOND""Color.reShape.TOP Shape.ONTOP GraphID1+"SE");

       
    fIncrementID2(100);  // increments/removes drawn item
               
    drawShapeRelative(0low(0),  Shape.DIAMOND""Color.greenShape.TOP Shape.ONTOP GraphID2+"LE");
        


    }

    function 
    fIncrementID1(DLimit) {
      
    GraphID1++;
      if (
    GraphID1 DLimit) {
        
    GraphID1 0;
      }
    }

    function 
    fIncrementID2(DLimit) {
      
    GraphID2++;
      if (
    GraphID2 DLimit) {
        
    GraphID2 0;
      }

    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Hi Alan,

      I searched and found the following links

      http://forum.esignalcentral.com/show...ine*#post79137

      hope this helps.

      Comment


      • #4
        Thank you both for your support.

        Best Regards,

        Alan

        Comment


        • #5
          Hi Alan,

          You are welcome, thanks for the followup.

          Comment

          Working...
          X