User (Legacy) Posted November 28, 2005 Report Share Posted November 28, 2005 My application refreshes the chart whenever the underlying data changes. Is there any way to freeze the chart display, do the update, then unfreeze the display? The update I'm doing involves assigning a new datasource and resetting series attributes and axis formats The problem is that when it's doing the update, the chart display is changing for every change made to the chart. I just want to show the end result when all of the chantges are done. I tried using chart.SuspendLayout() but that doesn't help. Are there any other options? Heath Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 28, 2005 Author Report Share Posted November 28, 2005 Hi, Yes, I also need to suspend the chart's repainting when I change the data or properties. There's no BeginUpdate and EndUpdate method. Same thing with the new chartFXvs2005. Raymond C. Dazo -- Interprise Solutions Team "Heath" <heath.brand@areva-td.com> wrote in message news:hC9DCqG9FHA.1668@webserver3.softwarefx.com... > My application refreshes the chart whenever the underlying data changes. > Is there any way to freeze the chart display, do the update, then unfreeze > the display? The update I'm doing involves assigning a new datasource and > resetting series attributes and axis formats The problem is that when > it's doing the update, the chart display is changing for every change made > to the chart. I just want to show the end result when all of the chantges > are done. I tried using chart.SuspendLayout() but that doesn't help. Are > there any other options? > > Heath > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted November 29, 2005 Report Share Posted November 29, 2005 Can you both describe which properties are causing an immediate repaint of the chart? Normally the properties should "accumulate" until the next repaint. We do expose a pair of BeginUpdate/EndUpdate methods in the chart class, they will not appear on Intellisense. Please let us know if they fix your issue. -- JC Software FX Support "Raymond Dazo" <raymond.d@interprisesolutions.com> wrote in message news:SzjqV6I9FHA.468@webserver3.softwarefx.com... > Hi, > > Yes, I also need to suspend the chart's repainting when I change the data > or properties. There's no BeginUpdate and EndUpdate method. Same thing > with the new chartFXvs2005. > > Raymond C. Dazo > > -- > Interprise Solutions Team > "Heath" <heath.brand@areva-td.com> wrote in message > news:hC9DCqG9FHA.1668@webserver3.softwarefx.com... >> My application refreshes the chart whenever the underlying data changes. >> Is there any way to freeze the chart display, do the update, then >> unfreeze the display? The update I'm doing involves assigning a new >> datasource and resetting series attributes and axis formats The problem >> is that when it's doing the update, the chart display is changing for >> every change made to the chart. I just want to show the end result when >> all of the chantges are done. I tried using chart.SuspendLayout() but >> that doesn't help. Are there any other options? >> >> Heath >> >> >> >> >> > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 29, 2005 Author Report Share Posted November 29, 2005 I have a place in my code where I save the series attributes (SoftwareFX.ChartFX.SeriesAttributes), clear the chart series data (m_chart.Series.Clear), then reapply the series attributes. The series.Clear() is what was changing the display I think. I tried the BeginUpdate/EndUpdate and it looks like that will solve my problem. Out of curiosity, why weren't these methods exposed? "Software FX Support" <none@noreply.com> wrote in message news:T6SIMkP9FHA.468@webserver3.softwarefx.com... > Can you both describe which properties are causing an immediate repaint of > the chart? Normally the properties should "accumulate" until the next > repaint. > > We do expose a pair of BeginUpdate/EndUpdate methods in the chart class, > they will not appear on Intellisense. Please let us know if they fix your > issue. > > -- > JC > Software FX Support > "Raymond Dazo" <raymond.d@interprisesolutions.com> wrote in message > news:SzjqV6I9FHA.468@webserver3.softwarefx.com... >> Hi, >> >> Yes, I also need to suspend the chart's repainting when I change the data >> or properties. There's no BeginUpdate and EndUpdate method. Same thing >> with the new chartFXvs2005. >> >> Raymond C. Dazo >> >> -- >> Interprise Solutions Team >> "Heath" <heath.brand@areva-td.com> wrote in message >> news:hC9DCqG9FHA.1668@webserver3.softwarefx.com... >>> My application refreshes the chart whenever the underlying data changes. >>> Is there any way to freeze the chart display, do the update, then >>> unfreeze the display? The update I'm doing involves assigning a new >>> datasource and resetting series attributes and axis formats The problem >>> is that when it's doing the update, the chart display is changing for >>> every change made to the chart. I just want to show the end result when >>> all of the chantges are done. I tried using chart.SuspendLayout() but >>> that doesn't help. Are there any other options? >>> >>> Heath >>> >>> >>> >>> >>> >> >> > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 29, 2005 Author Report Share Posted November 29, 2005 Hi, Mine is when I change the volume from 75 to 100 and vice-versa. The chart flickers everytime I do this. Yes, why is BegingUpdate/EndUpdate not in intellisense, even in vs2005, and even in resouceCenter? Also, is your chartfx.vs2005 newsgroup working? If yes, why can't I send a new post? Thank you, Raymond Dazo Link to comment Share on other sites More sharing options...
Software FX Posted November 30, 2005 Report Share Posted November 30, 2005 It flickers immediately ? do you mean that if you do: chart1.Volume= 20; chart1.Volume= 30; chart1.Volume= 40; In one shot, the chart flickers three times ? What version of Chart FX ? I can not reproduce this with any version. Can you attach a sample program ? BegingUpdate/EndUpdate are not in intellisense because they are not needed, Chart FX only updates at the end or when Refresh is called. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Software FX Posted November 30, 2005 Report Share Posted November 30, 2005 PS: Please refresh your newsgroup list, there are 2 newsgroups for ChartFX 2005 -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted December 2, 2005 Author Report Share Posted December 2, 2005 Hi, My Mistake. I call Chart.Refresh in between those proeprty changing, so that makes my chart flicker. I think you should still include BeginUpdate and Update in intellisense for convetional use. Most controls have these methods. Thank you, Raymond Dazo Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.