Page 1 of 1

[OnGetAxisLabel] When is it fired ?

Posted: Thu Jan 17, 2008 1:38 pm
by 9343260
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 ?

Posted: Thu Jan 17, 2008 1:41 pm
by narcis
Hi bertrod,

Changing axes scales implies that automatic labels need to be recalculated and therefore this event is fired.

Posted: Thu Jan 17, 2008 1:45 pm
by 9343260
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 ?

Posted: Wed Jan 23, 2008 4:38 pm
by Pep
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.