Solved

Borland c++Builder ActiveX Question

Posted on 2001-08-06
4
733 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

758 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

20 Experts available now in Live!

Get 1:1 Help Now