To clarify what i was referring to in post #12 principally in relation to the drawing tool i want to be able to do this outside of OnStateChange() and do this at the top of the OnRender for the drawing tool and to them manage which ZOrderType setting to apply. This is what i am trying to do can you confirm i can do this here - it does compile and run but changing the ZOrderType from the First to Last setting on certain conditions doesnt appear to have any effect. I removed the setting of ZOrder using ZOrder = value etc ....
I wanted the ability to move to the foreground or background of some drawingn objects - however not sure if this is possible or supported in onRender in this way?
Also what ninjatrader namespace do i need in order to reference SetZOrder in my custom drawing tool?
thanks
Comment