Page 1 of 1

TSimpleGraph Paint problem

PostPosted: September 23rd, 2005, 2:24 pm
by rebusfrase
First: Sorry for my English. I hope you undertand me!

This is my problem.
I've extended the TSimpleGraph, overridding the DrawBackground and painting on the canvas a picture... a simple calendar. It seems work well, but when i'm using my new component, on the mouseup event paint blank all background. I saw the proble is on the WMPaint procedure, but I cannot resolve it.
You can see the attachment

PostPosted: September 29th, 2005, 10:27 am
by rebusfrase
See attachment for a simple code example.
Tanks.

PostPosted: September 29th, 2005, 2:33 pm
by Kambiz
I think if you add the following lines to your code, everything will work fine.

Code: Select all
Canvas.Pen.Width := 1;
Canvas.Pen.Mode := pmCopy;

PostPosted: October 3rd, 2005, 8:41 am
by rebusfrase
Great it works fine!
Thanks.