Missing reference to TeeChartControl and inheritance bug
----------------------------------------------------------------------------
Settings:
Delphi 7, ReportBuilder 10.04, TeeChart5.03
----------------------------------------------------------------------------
I?m facing two problems after migrating from Delphi4-ReportBuilder5
To Delphi7-ReportBuilder10.04
The first strange behaviour appears when I drop a TeeChart component on my
ppReport.
If i open the ParentForm.dfm file, i can see that ppReport1, ppTeeChart1 and
ppTeeChartControl1 has been added to the form. Everything seems normal.
[ParentForm.dfm
object ppReport1: TppReport
object ppTeeChart1: TppTeeChart
object ppTeeChartControl1: TppTeeChartControl
end
end
end
]
But now, if I take a look at the ParentForm.pas file i surprisingly see
that there is no reference to the ppTeeChartControl1 object.
[ParentForm.pas
ppReport1: TppReport;
ppTeeChart1: TppTeeChart;
]
The question is:? Why is there no reference to ppTeeChartControl1 object
in the ParentForm.pas whereas it exists in the dfm" ?
This first problem triggers a second one when I try to inherit a ChildForm
from the above ParentForm.
If a try to do this, I can see in the ChildForm.dfm that both ppTeeChart1
and ppTeeChartControl1 exists (see below), but when I try to save this
ChildForm after a color modification in the ppTeeChartControl1 , Delphi
Claims that ppTeeChartControl1 was not found in the ancestor class.
inherited ppReport1: TppReport
inherited ppTeeChart1: TppTeeChart
inherited ppTeeChartControl1: TppTeeChartControl
Color = 16744703
end
end
end
Note that these two cases worked fines with ReportBuilder5 !
Any Help would be very appreciated,
B.
--- posted by geoForum on http://delphi.newswhat.com
Settings:
Delphi 7, ReportBuilder 10.04, TeeChart5.03
----------------------------------------------------------------------------
I?m facing two problems after migrating from Delphi4-ReportBuilder5
To Delphi7-ReportBuilder10.04
The first strange behaviour appears when I drop a TeeChart component on my
ppReport.
If i open the ParentForm.dfm file, i can see that ppReport1, ppTeeChart1 and
ppTeeChartControl1 has been added to the form. Everything seems normal.
[ParentForm.dfm
object ppReport1: TppReport
object ppTeeChart1: TppTeeChart
object ppTeeChartControl1: TppTeeChartControl
end
end
end
]
But now, if I take a look at the ParentForm.pas file i surprisingly see
that there is no reference to the ppTeeChartControl1 object.
[ParentForm.pas
ppReport1: TppReport;
ppTeeChart1: TppTeeChart;
]
The question is:? Why is there no reference to ppTeeChartControl1 object
in the ParentForm.pas whereas it exists in the dfm" ?
This first problem triggers a second one when I try to inherit a ChildForm
from the above ParentForm.
If a try to do this, I can see in the ChildForm.dfm that both ppTeeChart1
and ppTeeChartControl1 exists (see below), but when I try to save this
ChildForm after a color modification in the ppTeeChartControl1 , Delphi
Claims that ppTeeChartControl1 was not found in the ancestor class.
inherited ppReport1: TppReport
inherited ppTeeChart1: TppTeeChart
inherited ppTeeChartControl1: TppTeeChartControl
Color = 16744703
end
end
end
Note that these two cases worked fines with ReportBuilder5 !
Any Help would be very appreciated,
B.
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
This was a change we made a while back to better manage the TChart object
from the TppTeeChart. In order to change the color of the chart, you will
need to access the TppTeeChart.Chart property at runtime.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for your reply.
I understand how to access the chart properties in the parent form.
But i still have a problem with the childforms (derived forms). My
application is based on form inheritance, and delphi doesn't want to save
these childforms even if i don't change anything to the chart properties.
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--- posted by geoForum on http://delphi.newswhat.com
Do you have any idea/solution about my problem ?
--- posted by geoForum on http://delphi.newswhat.com
I'm very sorry for the delay, my newsreader did not pick up you last post.
If possible, please send a minimal example of what you are trying to do
(including the form inheritance) in .zip format to
support@digital-metaphors.com and we will try to find a workaround/option
for you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com