Adding a Scroll Pager tool throws exception

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Seveno Developer
Newbie
Newbie
Posts: 12
Joined: Fri Sep 30, 2016 12:00 am

Adding a Scroll Pager tool throws exception

Post by Seveno Developer » Mon Dec 19, 2016 11:49 pm

Hi,

I've reported a previous bug regarding scroll pager serialization issue (ID1395] http://bugs.teechart.net/show_bug.cgi?id=1395). Now that it has been fixed and for this I've just have upgraded to the latest build (4.1.2016.10261). I am able to open the previously saved charts with scroll pager but found that the the scroll pager tool is not working.

To reproduce, add a series and then add a scroll pager tool from the tools tab. Index out of range exception thrown.

Can we please get a quick solution to this? I have access to source for any modification required.

Regards,

Khaled

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Adding a Scroll Pager tool throws exception

Post by Christopher » Tue Dec 20, 2016 9:33 am

Hello Khaled,

Attached here:
WinFormsApp1.zip
(10.46 KiB) Downloaded 697 times
a small project that references the latest public version of TeeChart.dll. When I run this project here, I get the following result:
http://screencast.com/t/RseFtYnOsEL

do you get the same at your end? If not, could you please send me some code with which I can reproduce your problem at this end?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Adding a Scroll Pager tool throws exception

Post by Christopher » Tue Dec 20, 2016 12:16 pm

Khaled,
Christopher wrote:do you get the same at your end? If not, could you please send me some code with which I can reproduce your problem at this end?
an update - I can see that there is, in fact, a couple of problems with ScrollPager serialization *at designtime*, one of which has been present for the last two releases and one of which is present in the last release. I am looking at it now and will get back to you when I have resolved the issues.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Adding a Scroll Pager tool throws exception

Post by Christopher » Tue Dec 20, 2016 3:25 pm

Hello,
Christopher wrote:I am looking at it now and will get back to you when I have resolved the issues.
If you have the source code, within the ScrollPager.cs unit you can make these changes:
change1.PNG
change1.PNG (27.65 KiB) Viewed 15099 times
change2.PNG
change2.PNG (29.89 KiB) Viewed 15101 times
these should fix the designtime issues for you.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Seveno Developer
Newbie
Newbie
Posts: 12
Joined: Fri Sep 30, 2016 12:00 am

Re: Adding a Scroll Pager tool throws exception

Post by Seveno Developer » Tue Dec 20, 2016 11:14 pm

Hi Chris,

That has resolved the exception, but after the change in code the subchart is not scrollable at all. I can not change the selection/ boundary for the scrollable chart in design mode.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Adding a Scroll Pager tool throws exception

Post by Christopher » Thu Dec 22, 2016 1:04 pm

Hello,

I've made a number of changes to ScrollPager.cs, and although changing the boundaries with the mouse at designtime as one can at runtime is not possible (the boundaries can be changed using the Chart Editor, however), changes at designtime are now more accurately reflected at runtime. Possibly the easiest way to get these changes to you is by email - if you could give me your email I can sent this modified unit to you.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Seveno Developer
Newbie
Newbie
Posts: 12
Joined: Fri Sep 30, 2016 12:00 am

Re: Adding a Scroll Pager tool throws exception

Post by Seveno Developer » Tue Jan 03, 2017 12:17 am

Hi,

My email address is: khaleds@sentinelpl.com.au

I will be awaiting for your email with the modifications

Seveno Developer
Newbie
Newbie
Posts: 12
Joined: Fri Sep 30, 2016 12:00 am

Re: Adding a Scroll Pager tool throws exception

Post by Seveno Developer » Sun Jan 08, 2017 9:38 pm

Hi,

Still waiting for the email with the modified project

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Adding a Scroll Pager tool throws exception

Post by Christopher » Mon Jan 09, 2017 2:47 pm

Apologies for the delay - I have now sent you the unit.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Seveno Developer
Newbie
Newbie
Posts: 12
Joined: Fri Sep 30, 2016 12:00 am

Re: Adding a Scroll Pager tool throws exception

Post by Seveno Developer » Mon Jan 09, 2017 10:19 pm

Received, thanks

Post Reply