Page 1 of 1

Issue with Frames and TScrollPager

Posted: Thu Jul 27, 2017 3:25 pm
by 16580510
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

Re: Issue with Frames and TScrollPager

Posted: Mon Jul 31, 2017 12:05 pm
by yeray
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?

Re: Issue with Frames and TScrollPager

Posted: Tue Aug 01, 2017 8:20 am
by 16580510
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

Re: Issue with Frames and TScrollPager

Posted: Tue Aug 01, 2017 10:51 am
by yeray
Hello Gerhard,

I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1901