Page 1 of 1

Using TFaderTool to bring a chart into view

Posted: Fri Jul 06, 2007 12:05 pm
by 9231208
Support,

Much like my question about smoothly animating a series, how can I smoothly fade in an entire chart from invisibility using the TFaderTool tool, without seeing the chart initially?

I set the Chart's Visible property to False and when I want to fade in the chart, I set the visible property to True and execute the fader, but the effect is not great, as the chart initially flashes when setting Visible to True, it then disappears and only then does the chart fade in. I have set the TFaderTool.InitialDelay to 0, but I still get the initial flash.

Any ideas on how to smoothly fade in the chart?


Regards,
Keith

Posted: Fri Jul 06, 2007 8:01 pm
by narcis
Hi Keith,

You can do as in the example at What's New?\Welcome!\New Chart Tools\Fader at the features demo. There you can edit the Fader tool and select the color you want to fade in from. You could use the same color as the color of your form.

You'll find the features demo at TeeChart's program group.

Posted: Fri Jul 06, 2007 8:37 pm
by 9231208
Narcis,

Thank you, but I'm afraid your demo exhibits the same 'flashing' behaviour I am trying to overcome. I already tried all your suggestions and a few others, but it does not help.

Just before the chart is faded in, you can see the 'normal' chart (for just a few milliseconds, but enough to detract from the smooth fade-in effect). I want to avoid this initial, 'normal', unfaded chart being displayed.


Regards,
Keith

Posted: Sat Jul 07, 2007 8:58 pm
by 9231208
Narcis,

Nevermind, your technique used in the demo seems to work okay- it flashes very briefly in your demo, but not in my software (I think its because I do not have much to display initially (not series are visible), so painting is much faster).

Thank you,
Keith