Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

fixed stacking order in multiple DrawRectangle()

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

    fixed stacking order in multiple DrawRectangle()

    I use multiple DrawRectangle()in one script. There are some overlaping areas, and I don't use Transparent.

    how to make the newer shape and its color always on top of the older ones. it seems to me the stacking order of multiple shapes in a single script is at random by default.

    Thanks
    Last edited by solvmatic; 11-10-2011, 03:40 PM.

    #2
    Hi solvmatic,

    Unfortunately setting Z order for individual objects by code is not available.

    You can structure your rectangles as IDraw objects and set this property:

    SeparateZOrder - This is a bool representing if the draw object is on the same Z-order as the NinjaScript. If this is set to true, you could manually adjust the Z-order of individual rectangles after the object is drawn.

    To adjust the z-order:

    1. Select the chart object by left mouse clicking on it
    2. Hold down the "Shift" key on your keyboard and roll the mouse scroll wheel to change the z-order of the object. The current position out of the total number of levels in the z-scale will be displayed.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by inanazsocial, Today, 01:15 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by rocketman7, Today, 02:12 AM
    0 responses
    10 views
    0 likes
    Last Post rocketman7  
    Started by dustydbayer, Today, 01:59 AM
    0 responses
    1 view
    0 likes
    Last Post dustydbayer  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    5 responses
    23 views
    0 likes
    Last Post trilliantrader  
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    3 views
    0 likes
    Last Post Davidtowleii  
    Working...
    X