Board index » delphi » TCanvas.ClipRect problems
Ciaran Costelloe
![]() Delphi Developer |
Mon, 06 Aug 2001 03:00:00 GMT
TCanvas.ClipRect problems
I have a number of graphing routines in a unit to which I pass a TCanvas
as a parameter on which the routines draw the graph. At present, I get the size of the TCanvas from the ClipRect, eg nWidth := TheCanvas.ClipRect.Right - TheCanvas.ClipRect.Left. This works fine for a printer canvas or for a top-level form, but if I overlap part of the form with another application's window and then reveal it again, the TCanvas.ClipRect corresponds to the overlapped rectangle rather than all of the form's canvas. How can I get the coordinates of the whole canvas? Alternatively, how can I get all of the form's canvas "invalidated" even if only part of it is invalidated by Windows (like C's InvalidateRect())? I am sure there is something obvious I am overlooking, but I cannot Thanks in advance for any help. Ciaran Costelloe |