Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
670
Forcing FillSceenGraph to execute - Please read inside :¬)
posted

We have  a WinChart and a Datagrid as documents in a tabbed Control
It is a real-time WinChart and is updating continuously But..

When the Datagrid tab is pressed and it covers the WinChart, the Filscenegraph never gets fired.

Is there any way to force this ? or is it purely unlucky for me that .NET controls this behaviour :¬(

We do all our regression calculations inside the Filscenegraph.
It is very heavy interactive WinChart so it has to be like this BUT...

It breaks our programs as its not calculated when hidden.

Please help :¬)

Parents
  • 12480
    Offline posted

    Hi Mac,

    I don't recommend performing your calculations in FillSceneGraph, as the framework determines when the chart is drawn. As such, you cannot know for sure when or how often this event will fire. Instead, I'd do this in a helper method and call into it at a time determined by your application. For example, you might want to use a timer to ensure that updates are done at a regular interval.

    It might be worth a try to call Refresh() on the chart to see if this forces FillSceneGraph to fire, but I think .NET will figure out that it doesn't need to do anything.

Reply Children