Page 1 of 1

OnGetTitleText event?

Posted: Fri Dec 29, 2006 6:30 pm
by 9336044
I am using TeeChart 7 with Delphi 6.

I have been asked to allow users to insert a variable into titles/footers. When a chart is visible or printed, the variable would display the contents it represents. In this case, the user wants to insert a variable that will always show the current date so viewing the chart today will show 12/29/2006 and viewing it tomorrow would show 12/30/2006.

I have seen TeeChart's events for OnGetLegendText and OnGetMarkText. Is there anything similar for Titles so I may intercept a title such as "Last Viewed: <%D%>" and have the system automatically replace the variable "<%D%>" with the current date?

Thanks and happy new year!

Rich

Posted: Tue Jan 02, 2007 9:58 am
by narcis
Hi Rich,

Thanks and happy a great 2007.

I'm afraid such event doesn't exist. You can try implementing this in the OnBeforeDrawChart event or other similar event.