[OnGetAxisLabel] When is it fired ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

[OnGetAxisLabel] When is it fired ?

Post by bertrod » Thu Jan 17, 2008 1:38 pm

Hello,

I'm using my custom code in OnGetAxisLabel, but I noticed that this event is not only called when the labels are drawn, but also with the Axis.Minimum and Axis.Maximum.

Can you tell me what are all the moment which fire the event OnGetAxisLabel ?

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

Post by Narcís » Thu Jan 17, 2008 1:41 pm

Hi bertrod,

Changing axes scales implies that automatic labels need to be recalculated and therefore this event is fired.
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

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Thu Jan 17, 2008 1:45 pm

narcis wrote:Hi bertrod,

Changing axes scales implies that automatic labels need to be recalculated and therefore this event is fired.
Ok, but it is fired not only when labels are drawn :

-> fire for axis.maximum
-> fire for axis.minimum
-> fire for each label which is drawn

-> ... any other moment ?

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Jan 23, 2008 4:38 pm

Hi,

basically it's called when the label text is assigned, so this implies that each time label text (or value) is going to be drawn it's called (if it's assigned).

It's also called setting min and max for an axis as this means that axis labels have to be assigned and displayed again.

Post Reply