Issue with Frames and TScrollPager

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
gsachs
Newbie
Newbie
Posts: 6
Joined: Tue Mar 14, 2017 12:00 am

Issue with Frames and TScrollPager

Post by gsachs » Thu Jul 27, 2017 3:25 pm

There is a reproducable error when placing a frame on a form if the frame contains a TChart with a ScrollPager tool.
Attached are two error messages along with a demo project.
The problem shows up when you
- create an empty VCL project
- create a new frame
- put a TChart on that frame
- place the frame on the mainform
Until now, there is no problem, the project can be compiled, run, saved and reloaded without errors.
Next, add a scrollpager tool to the frames chart, the problems start now.
Delphi is complaining about a component with an empty propertyname.
The problem is very similar to Tcursortool reportes a few days age.
To me it seems that its the same cause.

Delphi 10.1 running under Windows10, TeeChart Pro 2017.22.170619 32Bit VCL

Regards
Gerhard Sachs
Attachments
ScrollPagerMessage2.JPG
ScrollPagerMessage2.JPG (17.24 KiB) Viewed 7363 times
ScrollPagerMessage1.JPG
ScrollPagerMessage1.JPG (25.81 KiB) Viewed 7359 times
Frame_PageScrollerProblem.zip
(75.09 KiB) Downloaded 579 times

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Issue with Frames and TScrollPager

Post by Yeray » Mon Jul 31, 2017 12:05 pm

Hello,

I see the TSubChartTool is created without a name in the .dfm. You can open the frameUnit2.dfm as text and modify the line:

Code: Select all

    object TSubChartTool
To have this:

Code: Select all

    object SubChartTool1: TSubChartTool
With this modification everything works without errors. Could you please confirm it?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

gsachs
Newbie
Newbie
Posts: 6
Joined: Tue Mar 14, 2017 12:00 am

Re: Issue with Frames and TScrollPager

Post by gsachs » Tue Aug 01, 2017 8:20 am

Hello,

after giving the TSubChartTool a name, the software works without problems.
But there is still some mystery.
In the frames dfm file the Chart has two subcomponents, the TScrollPagerTool with the name ChartTool1.
This tool exists with this name both in the dfm and the pas file.
Second, the TSubChartTool that had no name and exists only in the dfm, but not in the pas file.

How is this problem going to be solved ?

Regards
Gerhard

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Issue with Frames and TScrollPager

Post by Yeray » Tue Aug 01, 2017 10:51 am

Hello Gerhard,

I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1901
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply