TSimpleGraph Paint problem

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

TSimpleGraph Paint problem

Postby rebusfrase » September 23rd, 2005, 2:24 pm

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
Attachments
beforeAfter.jpg
before and after...
beforeAfter.jpg (36.97 KiB) Viewed 1389 times
rebusfrase
Active Member
Active Member
 
Posts: 5
Joined: August 23rd, 2004, 9:39 pm

Postby rebusfrase » September 29th, 2005, 10:27 am

See attachment for a simple code example.
Tanks.
Attachments
testPaint.zip
(12.24 KiB) Downloaded 150 times
rebusfrase
Active Member
Active Member
 
Posts: 5
Joined: August 23rd, 2004, 9:39 pm

Postby Kambiz » September 29th, 2005, 2:33 pm

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;
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby rebusfrase » October 3rd, 2005, 8:41 am

Great it works fine!
Thanks.
rebusfrase
Active Member
Active Member
 
Posts: 5
Joined: August 23rd, 2004, 9:39 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 3 guests

cron