Solved

Borland c++Builder ActiveX Question

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

775 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