Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Borland c++Builder ActiveX Question

Posted on 2001-08-06
4
Medium Priority
?
744 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

688 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