• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 StealthM93, Today, 07:58 PM
    0 responses
    2 views
    0 likes
    Last Post StealthM93  
    Started by Mykro, Today, 11:01 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by bauerjj10, Today, 12:24 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Newtrader101, Today, 06:01 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by Steve L, Today, 03:50 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X