Page 1 of 1
Identify Axis in GetAxisLabel event
Posted: Mon May 30, 2005 9:07 am
by 8123464
How do I tell which axis is the sender in the GetAxisLabel event, other than Title.Text (since my Title.Text is changing dynamically all the time). I would like to know if the calling Axis is the chart.Axis.Bottom Axis.
regard
Joachim
Identify Axis in GetAxisLabel event (continued)
Posted: Mon May 30, 2005 9:13 am
by 8123464
Sorry, I forgot something:
I have multiple charts all pointing to the same event handler, so the code:
chart1.Axis.Bottom will not work. Is there not some general Type I can compare with like
Code: Select all
if((sender) typeof(Steema.TChart.Axis.Bottom))?
Posted: Mon May 30, 2005 9:47 am
by narcis
Hi *joachim*,
Before using the code you posted you will have to do:
Code: Select all
if ((sender as Steema.TeeChart.Axis).Chart= tChart1 )
for every chart you have on your project.