Page 1 of 2

Failed to restore the position of TScrollPagerTool?

Posted: Mon Dec 02, 2013 7:08 am
by 16566869
Failed to restore the position of TScrollPagerTool after SetUpScrollPager() called?
Find the example project.

Re: Failed to restore the position of TScrollPagerTool?

Posted: Mon Dec 02, 2013 9:49 am
by narcis
Hi elmec,

I'm not sure about which is your exact problem. Using our current sources, when I resize the form, the ColorBand in the ScrollPager tool stays in the correct position. Is this your problem? Otherwise, can you provide more detailed information about the issue?

Thanks in advance.

Re: Failed to restore the position of TScrollPagerTool?

Posted: Tue Dec 03, 2013 3:54 am
by 16566869
BeforeResized.png
Before Resized
BeforeResized.png (69.22 KiB) Viewed 22506 times
AfterResized.png
AfterResized.png (197.74 KiB) Viewed 22498 times

Re: Failed to restore the position of TScrollPagerTool?

Posted: Tue Dec 03, 2013 3:59 am
by 16566869
It seems like the same problem with TRectangleTool..
http://www.teechart.net/support/viewtop ... =3&t=14467

Before get the position of TScrollPagerTool, did I need to call Draw() function?

Thanks in advance.

Re: Failed to restore the position of TScrollPagerTool?

Posted: Tue Dec 03, 2013 4:48 am
by 16566869
For the size limit, I upload the video for detailed info. to Skydrive.
https://skydrive.live.com/redir?resid=5 ... ile%2c.zip

Re: Failed to restore the position of TScrollPagerTool?

Posted: Tue Dec 03, 2013 9:47 am
by narcis
elmec wrote:It seems like the same problem with TRectangleTool..
http://www.teechart.net/support/viewtop ... =3&t=14467

Before get the position of TScrollPagerTool, did I need to call Draw() function?
Yes, it could be an option.
elmec wrote:For the size limit, I upload the video for detailed info. to Skydrive.
https://skydrive.live.com/redir?resid=5 ... ile%2c.zip
I'm not able to reproduce the problem you showed in the video either using the .exe you attached nor compiling your project here. Both exhibit the same behavior, clicking on the chart the ScrollPager tool is not resized nor relocated.

Re: Failed to restore the position of TScrollPagerTool?

Posted: Tue Dec 03, 2013 10:54 am
by 16566869
So what should I go to DO?
BTW, I am using the 201309XE4..the newest version released last month.

Best Regards.

Re: Failed to restore the position of TScrollPagerTool?

Posted: Tue Dec 03, 2013 11:01 am
by 16566869
Please follow the following steps to reproduce the issue.
1). Change the StartValue and EndValue of TScrollPagerTool to the value instead of default,
2). Resize the TChart.
3). Click on the TChart.

I think you missed the step 1...

Re: Failed to restore the position of TScrollPagerTool?

Posted: Fri Dec 06, 2013 4:29 am
by 16566869
Hello,

Would you please give us some advice?

Re: Failed to restore the position of TScrollPagerTool?

Posted: Mon Dec 30, 2013 4:16 am
by 16566869
We are still waiting for the reply...
If it is a bug, would you please tell us how to fix that..
We cannt wait for the next release because we are going to release our software.

Re: Failed to restore the position of TScrollPagerTool?

Posted: Mon Dec 30, 2013 2:57 pm
by 10050769
Hello elmec,

First, I must apologize for our delay.
We have tried on several machine setups to reproduce the problem without success; is the problem reproducible on different machine setups or is there some particular (ie. Windows/Graphics-card) combination where the problem shows up. If you can help us with further information to recreate the
problem we'll investigate right away.

Thanks in advance.

Re: Failed to restore the position of TScrollPagerTool?

Posted: Fri Jan 03, 2014 4:27 am
by 16566869
Thanks..and Happy New Year!

I have 3 PCs, all of which can reproduce the problem.
They are Panasonic CF-B11(64Bit), DELL Dimension E521(32Bit) and DELL Vostro 260(32Bit).
so I don't think there are any particular combination..

I will attach the Exe file, would you please try it again using it,
NOT using the recompiled one.

Anyway, I will attach the video again to make the steps clearly..

The file is too big, so I upload them here.
https://skydrive.live.com/redir?resid=5 ... ADC%21212

Re: Failed to restore the position of TScrollPagerTool?

Posted: Fri Jan 03, 2014 7:56 am
by 16566869
Another bug? that is similar to the previous one.

It seems working well when I tried to change the position fo ColorBandTool of TScrollPagerTool,
but when I move the mouse into the TChart, the position was changed back to old position.

I also uploaded the exe file, video, and source here.
https://skydrive.live.com/redir?resid=5 ... 0ADC%21215

Re: Failed to restore the position of TScrollPagerTool?

Posted: Sun Jan 05, 2014 7:30 am
by 16566869
I think the problem is because of some event like _ColorBandChange_ not triggled,
so I checked the source of the TeeScrollPagerTool.pas..
and found that there is a procedure called ColorBandChanged..
then I added the code like the way of ColorBandChanged after
I assigned values to StartValue and EndValue...like the following..
And it seems that the problem is fixed..

Code: Select all

	double start = ScrollPager->ColorBandTool->StartValue;
	double end   = ScrollPager->ColorBandTool->EndValue;

	ScrollPager->SetUpScrollPager();
	ScrollPager->ColorBandTool->Color      = claGray;
	ScrollPager->ColorBandTool->StartValue = start ;
	ScrollPager->ColorBandTool->EndValue   = end;

	Chart->BottomAxis->SetMinMax(start, end);

Re: Failed to restore the position of TScrollPagerTool?

Posted: Tue Jan 07, 2014 8:48 am
by narcis
Hello elmec,

We could reproduce the problem here but haven't found a satisfactory solution yet, it is not an easy one. In the meantime, could you please add the issue to http://bugs.teechart.net/?

Thanks in advance.