Profile Picture

When to use RecalcLayout and Refresh

Posted By Kevin Harrison 14 Years Ago
Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Kevin,

When you resize the control it automatically recalc the layout and invalidate. In general we've opted for the .Refresh() method because that way you can make multiple changes to the chart document (add data, modify settings etc), without generating unecessary control invalidates - you can switch the control in autorefresh mode:

nChartControl1.AutoRefresh = true;

and then you'll not have to worry about refresh calls.



Best Regards,
Nevron Support Team



Kevin Harrison
Posted 14 Years Ago
View Quick Profile
Forum Guru

Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 52, Visits: 1

When should I use ReCalcLayout and Refresh?  I am trying to hide the axes, title and legend on an NChartControl when the size is reduced beyond a certain size.  This all appears to be working without using either option, so I am interested to know when they need to be used.

Thanks

Kevin





Similar Topics


Reading This Topic