delphi.gif (306 バイト) Graphの使い方


Graph ActiveXコントロールは名前の通りグラフを表示するコントロールです。ChartChartFxの方が強力そうですが、こちらの方が手軽に使えるかもしれません。

 

toach.gif (917 バイト) Graphの簡単な使い方

  1. オブジェクトインスペクタでGraphStyle、GraphTitleなど基本的なグラフのパラメータを決めます。
  2. プログラムでThisPoint(X)とGraphData(Y)を設定します。

    with Graph1 do
    begin
        BottomTitle := 'X';
        LeftTitle := 'Y';
        n := 20;
        NumPoints := n;
        LabelEvery := 2;
        for x := 1 to n do
        begin
            ThisPoint := x;
            GraphData := 20 * x;
        end;
    end;

 

toach.gif (917 バイト) Graphのヘルプ

\Delphi3\Ocx\Pannacle\Graph.hlp(英語)があります。