unit Pie_AutoMarkPosition;
{$I TeeDefs.inc}

interface

uses
  {$IFNDEF LINUX}
  Windows, Messages,
  {$ENDIF}
  SysUtils, Classes,
  {$IFDEF CLX}
  QGraphics, QControls, QForms, QDialogs, QStdCtrls, QExtCtrls,
  {$ELSE}
  Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls,
  {$ENDIF}
  Base, TeEngine, Series, TeeProcs, Chart, TeeGDIPlus;

type
  TPieAutoMarkPos = class(TBaseForm)
    Series1: TPieSeries;
    CheckBox1: TCheckBox;
    procedure CheckBox1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

implementation

{$IFNDEF CLX}
{$R *.dfm}
{$ELSE}
{$R *.xfm}
{$ENDIF}

procedure TPieAutoMarkPos.CheckBox1Click(Sender: TObject);
begin
  Series1.AutoMarkPosition:=CheckBox1.Checked;
end;

procedure TPieAutoMarkPos.FormCreate(Sender: TObject);
begin
  inherited;
  Series1.FillSampleValues(16);
end;

initialization
  RegisterClass(TPieAutoMarkPos);
end.
