Page 1 of 1

Adding a Scroll Pager tool throws exception

Posted: Mon Dec 19, 2016 11:49 pm
by 16079247
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

Re: Adding a Scroll Pager tool throws exception

Posted: Tue Dec 20, 2016 9:33 am
by Christopher
Hello Khaled,

Attached here:
WinFormsApp1.zip
(10.46 KiB) Downloaded 798 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?

Re: Adding a Scroll Pager tool throws exception

Posted: Tue Dec 20, 2016 12:16 pm
by Christopher
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.

Re: Adding a Scroll Pager tool throws exception

Posted: Tue Dec 20, 2016 3:25 pm
by Christopher
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 15386 times
change2.PNG
change2.PNG (29.89 KiB) Viewed 15388 times
these should fix the designtime issues for you.

Re: Adding a Scroll Pager tool throws exception

Posted: Tue Dec 20, 2016 11:14 pm
by 16079247
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.

Re: Adding a Scroll Pager tool throws exception

Posted: Thu Dec 22, 2016 1:04 pm
by Christopher
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.

Re: Adding a Scroll Pager tool throws exception

Posted: Tue Jan 03, 2017 12:17 am
by 16079247
Hi,

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

I will be awaiting for your email with the modifications

Re: Adding a Scroll Pager tool throws exception

Posted: Sun Jan 08, 2017 9:38 pm
by 16079247
Hi,

Still waiting for the email with the modified project

Re: Adding a Scroll Pager tool throws exception

Posted: Mon Jan 09, 2017 2:47 pm
by Christopher
Apologies for the delay - I have now sent you the unit.

Re: Adding a Scroll Pager tool throws exception

Posted: Mon Jan 09, 2017 10:19 pm
by 16079247
Received, thanks