and was answered as follows
You should find no problem working with both NinjaScript drawing methods and SharpDX drawing methods within OnRender, and you can access any of the NinjaScript drawing objects' properties from within OnRender, as well.
The big distinction here is that SharpDX drawing requires a RenderTarget, and OnRender provides a ready-made RenderTarget for you. Thus, you will want to do your SharpDX work within that event. NinjaScript drawing methods (Draw.X) have no such requirement, and are already connected to logic related to slot indexes and the x- and y-axis, so you can call them in a greater scope.
The question i have now ... with on going issues and particulars of onrender and ensuring the correct methods and onrender target being set and use of brushes...
I have this call in an onRender() which i am reviewing ...
myTFVOLUME = Draw.TextFixed(this, "currentbarvol", volarray..BAVolume.ToString(), TextPosition.BottomRight);
now generally this has not been an issue but today it threw out a
Failed to call OnRender() for chart object 'Fixed text' : attempted to read or write protected memory ...
so this is the only draw.xxx i use all others are RenderTarget.DrawText(str,tf_s.... methods.
So in the light of the prior post and link where intermixxed was advocated as being fine .. is it still the case and i should only use the RenderTarget.DrawText method
any update or insight appreciated
thanks

Comment