TeeChart Series title
Hello,
I have the Problem that i must set the titles of teechart Series from within
RAP, but at this time i see no chance how to do that.
i can get the chart property of the teechart in RAP but if i want to go to
any of the chart properties i get an error from the rap-compiler.
Any idea how to solve my problem
I have the Problem that i must set the titles of teechart Series from within
RAP, but at this time i see no chance how to do that.
i can get the chart property of the teechart in RAP but if i want to go to
any of the chart properties i get an error from the rap-compiler.
Any idea how to solve my problem
This discussion has been closed.
Comments
Please see the article below for information on how to extend RAP to include
the methods you need to use.
--------------------------------------------------
Article: Extending RAP
---------------------------------------------------
There are two very simple and powerful techniques to extend the capabilities
of RAP infinitely. These are summarized below and covered in more detail in
the RAP.hlp online help. Demos and tutorials are installed to
RBuilder\Demos\RAP. The tutorial text is located in RAP.hlp.
1. RAP Pass-Through Functions
These are functions that appear in the Language tab of RAP's Code Toolbox.
These functions are written in Delphi and can be called from RAP. RAP's
pass-through function architecture enable's developers to add new built-in
functions to RAP's code toolbox.
2. Extend RAP's RTTI
RAP's Run-time Type information defines what classes and properties can be
accessed via RAP. By default the published properties of any class that is
registered with Delphi's RegisterClass procedure is recognized by RAP. In
addition many of the public properties and methods of ReportBuilder classes
are exposed.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
large project i don't have the time spending hours on trying to extend the
software your company is selling.
The teecharts are really a great effort, but there must be more people tahn
me, who need to set properties dynamically. I think it would be a great idea
to introduce some package by digital-meatphors for those really important
questions.
Maybe some lines of code could solve my problems, but i don't have the time
to search for them. The company i am working for want to see solutuions when
they buy software.
Greetings
F.-P.Krebs
within
I tried this:
var
lChart: TppTeeChartControl;
lBarSeries: TBarSeries;
begin
lChart := TppTeeChartControl(TeeChart1.Chart);
lBarSeries := TBarSeries(lChart.SeriesList[0]);
lBarSeries .Title := 'test 1';
lBarSeries := TBarSeries(lChart.SeriesList[1]);
lBarSeries .Title := 'test 2';
end;
and it worked fine. Is that what you were looking for?
Ed Dressel
Team DM
thanks a lot for your help.
It looks so easy when you know the answer but i have searched around for
hours.
Once again many thanks
F.-P:Krebs
I know--I spend hours looking for something before I send support (for any
product) a question. I try to simplify/isolate the question as much as I can
and then I often get an answer back sounding like I shouldn't ask such
simple questions.
Ed Dressel
Team DM