mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-29 07:02:48 +02:00
45 lines
749 B
ObjectPascal
45 lines
749 B
ObjectPascal
unit Main;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, ComCtrls, db, DBGrids, memds, SysUtils, FileUtil,
|
|
LResources, Forms, Controls, Graphics, Dialogs, TADbSource, TAGraph, TASeries;
|
|
|
|
type
|
|
|
|
{ TForm1 }
|
|
|
|
TForm1 = class(TForm)
|
|
Chart1: TChart;
|
|
Chart1BarSeries1: TBarSeries;
|
|
Chart1LineSeries1: TLineSeries;
|
|
Datasource1: TDatasource;
|
|
DbChartSource1: TDbChartSource;
|
|
DBGrid1: TDBGrid;
|
|
MemDataset1: TMemDataset;
|
|
ToolBar1: TToolBar;
|
|
tbCopy: TToolButton;
|
|
procedure tbCopyClick(Sender: TObject);
|
|
end;
|
|
|
|
var
|
|
Form1: TForm1;
|
|
|
|
implementation
|
|
|
|
{ TForm1 }
|
|
|
|
procedure TForm1.tbCopyClick(Sender: TObject);
|
|
begin
|
|
Chart1BarSeries1.ListSource.CopyForm(DbChartSource1);
|
|
end;
|
|
|
|
initialization
|
|
{$I main.lrs}
|
|
|
|
end.
|
|
|