Page 1 of 1

Issue with OnBeforeDrawChart

Posted: Sat May 11, 2019 7:08 am
by 16584466
Hello,

I need to have the plot area (area between axes) painted in white so I added some code in the OnBeforeDrawChart event. When I start the app the area inside the plot is painted with the default colour and once I move the mouse inside the event code executes well. Is there a way to fix this? I tried calling TChart.Draw when the form is shown but no luck.

I am using the latest TChart version

Re: Issue with OnBeforeDrawChart

Posted: Tue May 21, 2019 7:16 am
by yeray
Hello,

Adding the aChart.Draw call at FormCreate works for me using RAD 10.3 Rio and TeeChart Pro v2018.26:
OnBeforeDrawChart.zip
(2.14 KiB) Downloaded 1071 times
If you still find problems with this, please tell us what environment are you using.

Re: Issue with OnBeforeDrawChart

Posted: Wed May 22, 2019 4:54 am
by 16584466
Thank you for your reply, that seems to do the trick :)