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, 08: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 timmbbo, 01-08-2020, 08:09 PM
    3 responses
    395 views
    0 likes
    Last Post bltdavid  
    Started by ntbone, Today, 02:30 PM
    0 responses
    5 views
    0 likes
    Last Post ntbone
    by ntbone
     
    Started by tuliomgui, Yesterday, 10:07 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by Learner Trader, Today, 08:36 AM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by GeorgeW, Today, 03:15 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Working...
    X