Solved

Borland c++Builder ActiveX Question

Posted on 2001-08-06
4
741 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
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…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

734 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