Page 1 of 1

Drawing to a canvas from OnAfterDraw handler not working

Posted: Thu Dec 05, 2013 7:45 am
by 16665635
Drawing to a TeeChart canvas from an OnAfterDraw event does not work anymore when GetEnvironment()->InternalRepaint() is called. Any drawing done from OnAfterDraw event handler to a canvas during InternalRepaint call is displayed only after series data is changed. Forcing window repaint using Invalidate(), RedrawWindow() etc. does not work, series data has to be changed for anything drawn to the canvas to be displayed.

Example app included.

- Tero

Re: Drawing to a canvas from OnAfterDraw handler not working

Posted: Thu Dec 05, 2013 9:50 am
by 16665635
Ok, I found a solution myself. TeeChart's Repaint() does the trick. The code was originally written for v8 which worked with InternalRepaint() just fine.

- Tero