Sequence of events
Posted: Fri Dec 12, 2003 2:27 am
I am trying to set the subtitle of my chart to the time/date representation of the span of the X-axis. (eg. 1 Jan 2003 - 30 May 2004).
I am doing this in the 'OnBeforeDrawAxis' event at which time I can access 'Chart->BottomAxis->Minimum' & 'Chart->BottomAxis->Maximum'.
At this stage I set the text of the subtitle by using -
Chart->SubTitle->Text->Text = TDateTime(startTime).DateString() + " to " + TDateTime(endTime).DateString();
Unfortunately, the subtitle does not update with this modified text until the "next" time the chart is re-drawn. If I attempt to capture the bottom axis minimum and maximum values earlier then I may not get the right range (assuming I want to capture the zoomed axis range as well).
Does anyone have any comments about this ?
David.
I am doing this in the 'OnBeforeDrawAxis' event at which time I can access 'Chart->BottomAxis->Minimum' & 'Chart->BottomAxis->Maximum'.
At this stage I set the text of the subtitle by using -
Chart->SubTitle->Text->Text = TDateTime(startTime).DateString() + " to " + TDateTime(endTime).DateString();
Unfortunately, the subtitle does not update with this modified text until the "next" time the chart is re-drawn. If I attempt to capture the bottom axis minimum and maximum values earlier then I may not get the right range (assuming I want to capture the zoomed axis range as well).
Does anyone have any comments about this ?
David.