Page 1 of 1

Teecommander undo explode

Posted: Thu Mar 19, 2009 12:10 pm
by 10050873
Hello,

With Teecommander the users can explode pie with the mouse.
How can we do to "undo" it, is there is a key or mouse command?

thanks

Regards

Posted: Fri Mar 20, 2009 9:17 am
by yeray
Hi Calou,

Wouldn't be better simply disallowing the user to delete any series?

Code: Select all

  TeeCommander1.ChartEditor := TChartEditor.Create(nil);
  TeeCommander1.ChartEditor.Chart := Chart1;
  TeeCommander1.ChartEditor.Options := TeeCommander1.ChartEditor.Options-[ceDelete];

Posted: Mon Mar 23, 2009 11:06 am
by 10050873
Hello,

I am not talking about deleting series but explode pie.

Regards

Posted: Mon Mar 23, 2009 11:19 am
by yeray
Hi Calou,

I'm sorry, I didn't understand correctly. To do this you could reset pie's explode with in editor's OnClose event:

Code: Select all

uses TeeEdit;

procedure TForm1.FormCreate(Sender: TObject);
begin
  TeeCommander1.ChartEditor := TChartEditor.Create(nil);
  TeeCommander1.ChartEditor.Chart := Chart1;
  TeeCommander1.ChartEditor.OnClose := OnCloseEditor;

end;

procedure TForm1.OnCloseEditor(Sender: TObject);
begin
  Series1.ExplodeBiggest := 0;
end;