Page 1 of 1

BCB6 and TeeChart Pro 7

Posted: Tue May 01, 2007 5:56 pm
by 8571714
I am using BCB 6 and just acquired TeeChart Pro 7. I am new to both. I am trying to follow the tutorial as given in "Tutorial 1 - Getting started" of "Welcome to TeeChart Pro tutorials":

In "Coding data input with TChart", it says: " ... Select a Command button from the Component palette and place it on your Form. Double-click on the button to access the code editor. I do not know which Component
Palette in considered. Then, it continues:

"In the code Editor type these lines:

With Series1 do
begin
Add (3, 'Pears', clRed);
Add (4, 'Apples', clBlue);
Add (2, 'Oranges', clGreen);
end;"

I am using BCB6 and these lines are in Pascal code.

Thanks.
Jamel

Posted: Wed May 02, 2007 12:05 pm
by narcis
Hi Jamel,

To familiarize yourself with the IDE I strongly recommend you to have a look at the 30 Camtasia Demos in 30 Days Nick Hodges arranged. Nick Hodges is Delphi's product manager and those videos are made for Turbo Delphi 2006 but several concepts should also apply to BCB 6 or BCB 2006.

Regarding the code you posted, its BCB 6 version would be this:

Code: Select all

        Series1->Add (3, "Pears", clRed);
        Series1->Add (4, "Apples", clBlue);
        Series1->Add (2, "Oranges", clGreen);
Please also notice that a BCB demo with examples of most of TeeChart features is provided with the binary installers available at the client download area. The demo is NOT included with the source code installer. So I recommend you to install the binary installer for your IDE to obtain documentation and examples.