Failed to restore the position of TScrollPagerTool?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Failed to restore the position of TScrollPagerTool?

Post by elmec » Mon Dec 02, 2013 7:08 am

Failed to restore the position of TScrollPagerTool after SetUpScrollPager() called?
Find the example project.
Attachments
TScrollPagerTool.zip
(75.24 KiB) Downloaded 787 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Failed to restore the position of TScrollPagerTool?

Post by Narcís » Mon Dec 02, 2013 9:49 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by elmec » Tue Dec 03, 2013 3:54 am

BeforeResized.png
Before Resized
BeforeResized.png (69.22 KiB) Viewed 22515 times
AfterResized.png
AfterResized.png (197.74 KiB) Viewed 22507 times
Attachments
Project2.zip
Exe file
(87.93 KiB) Downloaded 833 times

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by elmec » Tue Dec 03, 2013 3:59 am

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.

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by elmec » Tue Dec 03, 2013 4:48 am

For the size limit, I upload the video for detailed info. to Skydrive.
https://skydrive.live.com/redir?resid=5 ... ile%2c.zip

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Failed to restore the position of TScrollPagerTool?

Post by Narcís » Tue Dec 03, 2013 9:47 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by elmec » Tue Dec 03, 2013 10:54 am

So what should I go to DO?
BTW, I am using the 201309XE4..the newest version released last month.

Best Regards.

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by elmec » Tue Dec 03, 2013 11:01 am

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...

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by elmec » Fri Dec 06, 2013 4:29 am

Hello,

Would you please give us some advice?

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by elmec » Mon Dec 30, 2013 4:16 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by Sandra » Mon Dec 30, 2013 2:57 pm

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.
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by elmec » Fri Jan 03, 2014 4:27 am

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

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by elmec » Fri Jan 03, 2014 7:56 am

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

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: Failed to restore the position of TScrollPagerTool?

Post by elmec » Sun Jan 05, 2014 7:30 am

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);

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Failed to restore the position of TScrollPagerTool?

Post by Narcís » Tue Jan 07, 2014 8:48 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply