Solved

Borland c++Builder ActiveX Question

Posted on 2001-08-06
4
735 Views
Last Modified: 2007-12-19
Hi extperts

i need to use the TChartfx component from c++builder for showing a line draw. Does anyone know how to use this component?
i only have a delphi sample code from
http://www.doit.com/delphi/undu/dn0831bf.htm

hope anyone can help. thx
0
Comment
Question by:reggler
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
RideOn earned 0 total points
ID: 6355935
u can use it this way:

     Chart1->OpenDataEx(COD_VALUES,2,8);

     Chart1->ThisSerie = 0;
     Chart1->Value[0] = 30;
     Chart1->Value[1] = 20;
     Chart1->Value[2] = 40;
     Chart1->Value[3] = 60;
     Chart1->Value[4] = 50;
     Chart1->Value[5] = 15;
     Chart1->Value[6] = 24;
     Chart1->Value[7] = 35;

     Chart1->ThisSerie = 1;
     Chart1->Value[0] = 45;
     Chart1->Value[1] = 60;
     Chart1->Value[2] = 30;
     Chart1->Value[3] = 60;

        Chart1->Value[4] = 80;
     Chart1->Value[5] = 45;
     Chart1->Value[6] = 15;
     Chart1->Value[7] = 45;

     Chart1->CloseData(COD_VALUES);


don't forget "CloseData" if u don't write that, it won't work.

i found that in Chart FX 2.0 OCX for Delphi Help.

grEEz RideOn
0
 

Author Comment

by:reggler
ID: 6355964
yup cool, that works....
but there's annother problem...i have "fast" refreshing rates (100ms) and now it does flicker...do u know how to prevent that?
0
 
LVL 1

Expert Comment

by:RideOn
ID: 6358361
nope, no idea... sorry
maybe u have to take annother Chart....
0
 
LVL 3

Expert Comment

by:modder
ID: 6535646
Thanks lads. Please don't use EE as a collusion tool between colleagues.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now