How and where to force Context to redraw.  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
holya
Posts: 40
Joined: Aug 28 2012
Location: Vancouver, Canada
Has thanked: 8 times
Been thanked: 1 time

Oct 09 2012

I'm using GDI+ to draw complex shapes on my chart. But so far I haven't been able to force the context to redraw itself, so I have to interact with the chart to do so which is unreasonable!
I have used context.DirtyRect = context.FullRect and context.ReDraw = true; in Draw method but no luck!
Does anyone know how to do this?

Thanks a million!

User avatar
Henry MultiСharts
Posts: 9165
Joined: Aug 25 2011
Has thanked: 1264 times
Been thanked: 2958 times

Oct 11 2012

Hello Holya,

You can use IChartCustomDrawRegistrator.ReDraw() to do that.
As a usage example please refer to _Market_Depth_on_Chart study.