Teecommander undo explode

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Teecommander undo explode

Post by Calou » Thu Mar 19, 2009 12:10 pm

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

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Mar 20, 2009 9:17 am

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];
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Post by Calou » Mon Mar 23, 2009 11:06 am

Hello,

I am not talking about deleting series but explode pie.

Regards

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 23, 2009 11:19 am

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply