Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing bug?

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

    Drawing bug?

    Hi,

    I think I have found a bug related to drawing of lines.

    First I draw a line using DrawRay like this:
    DrawRay( str, x0, y0, x1, y1, chcolor, DashStyle.Solid, linewidth );

    Then I re-use the same string to draw a line (not a Ray!)
    DrawLine( str, x0, y0, x1, y2, chcolor, DashStyle.Solid, linewidth );

    I was expecting the Ray to change into a line, but that is not happening. It will draw a ray again with the new coordinates. Maybe it is bad practice to do it this way, without first removing the object. But since it does change the coordinates but not the type of line ('Line' or 'Ray') I consider it a bug.

    Of course you can work around this by first removing the line before redrawing, but in my specific application this is a bit tricky...
    Last edited by FireFly; 12-24-2007, 09:42 AM.

    #2
    Thanks for reporting. I suspect that since internally there is a Ray object already defined by your "tag" that is what is being changed. Will check into it. Likely approach would be to throw a log message saying that the "tag" is of type "Ray" and can not be changed by the calling method DrawLine() etc...
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    574 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    332 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X