GetAxesChartRect event

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
WD_Gordon
Newbie
Newbie
Posts: 49
Joined: Wed Jun 18, 2008 12:00 am

GetAxesChartRect event

Post by WD_Gordon » Wed Dec 03, 2008 1:30 pm

I subscribed to the GetAxesChartRect event so that I can get the chart rectangle but what I found it that event seems to get fired every time the AfterDraw event gets fired. Wouldn't it make more sense and be cleaner if that event only fired when the actual rectangle size changed?

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Re: GetAxesChartRect event

Post by Christopher » Thu Dec 04, 2008 12:26 pm

Hello,
WD_Gordon wrote:Wouldn't it make more sense and be cleaner if that event only fired when the actual rectangle size changed?
The GetAxesChartRect event was not designed to be fired only when the rectangle size is changed. It was designed to allow the developer the possibility of changing its size. This being the case, it therefore needs to be called every time the chart is painted when it is has been subscribed to.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply