Hi
I've attached a project that shows a problem when I use ClipRectangle with a custom series. If you click Add Data then re-size the form, the button disappears. It re-appears if you move the mouse over it's position. To avoid the problem, comment out the lines with UnClipRectangle and ClipRectangle.
I'm using XE5 with Update 1.
Cheers, Bob
ClipRectangle problem
ClipRectangle problem
- Attachments
-
- TeeChart Test 1.zip
- (56.73 KiB) Downloaded 1062 times
Re: ClipRectangle problem
Hi Bob,
You are calling ClipRectangle at the end of the AfterDraw event, leaving the Canvas clipped. I don't see why would you do that.
This works fine:
You are calling ClipRectangle at the end of the AfterDraw event, leaving the Canvas clipped. I don't see why would you do that.
This works fine:
Code: Select all
ParentChart.Canvas.ClipRectangle(ParentChart.ChartRect);
ParentChart.Canvas.TextOut(200, 200, 'Test Text');
ParentChart.Canvas.UnClipRectangle;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: ClipRectangle problem
Yes I'd wondered about that myself... This is old code written in 2001 by someone else which, strangely, has always worked fine. Looks like he got it the wrong way round....
Thanks, Bob
Thanks, Bob