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

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

How and where to force Context to redraw.

Postby holya » 09 Oct 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: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

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

Postby Henry MultiСharts » 11 Oct 2012

Hello Holya,

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


Return to “MultiCharts .NET”