How to adjust annotation position after zoom/resize??
Posted: Mon Jun 05, 2006 5:36 pm
Hi,
I use color band tools and put annotations on them to give them a
description for the enduser.
When I zoom/unzoom or resize the graph I want to
adjust the position of the annotations.
The zoomed event, however, is called BEFORE the chart class is repainted
to show the new axis scales and therefore a call like:
this.annotation1.Left = chart1.Axes.Bottom.CalcXPosValue(this.ColorBand1.Start);
does not get the new value.
Is there a way to adjust the annotations to the new postion of the colorband(s)? As far as I see the colorband class does not have a label or mark associated with it. If it had, I would not need the annotations.
Thanks,
fano
I use color band tools and put annotations on them to give them a
description for the enduser.
When I zoom/unzoom or resize the graph I want to
adjust the position of the annotations.
The zoomed event, however, is called BEFORE the chart class is repainted
to show the new axis scales and therefore a call like:
this.annotation1.Left = chart1.Axes.Bottom.CalcXPosValue(this.ColorBand1.Start);
does not get the new value.
Is there a way to adjust the annotations to the new postion of the colorband(s)? As far as I see the colorband class does not have a label or mark associated with it. If it had, I would not need the annotations.
Thanks,
fano