Check Boxes in Legend

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Henning
Newbie
Newbie
Posts: 2
Joined: Fri Apr 08, 2005 4:00 am

Check Boxes in Legend

Post by Henning » Fri Apr 15, 2005 1:12 pm

Hi there,

im using a few series on my chart. each is connected to a different axis. the axis have different start positions.
i added check boxes on the legend to enable/disable the series and the connected axis. im in need to rearrange the the positions of the axis if one or more series are enabled/disabled.
is there an event fired when clicking on these check boxes so i can set a new axis position ? didnt find anything about that in the help files...


thx for help

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 15, 2005 2:07 pm

Hi Henning,

There's no specific event for what you request but it may help you using chart's OnClickLegend and/or OnAfterDraw events. You can also use Series.Visible to check if series are visible or not that's what changes when clicking legend checkboxes.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply