From: "Roy Green" Newsgroups: borland.public.delphi.graphics References: <3C8D6E5D.69A7C092@courthouse.com> Subject: Re: TCanvas.ClipRect Doc Error Date: Tue, 12 Mar 2002 01:17:30 -0500 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 66.32.79.89 Message-ID: <3c8d9d64_2@dnews> X-Trace: dnews 1015913828 66.32.79.89 (11 Mar 2002 22:17:08 -0800) Path: dnews Xref: dnews borland.public.delphi.graphics:47067 You set it by invalidating (or validating) rectangles or regions. TCanvas.ClipRect is just a wrapper around the Win32 GetClipBox() routine, which just gets the rectangle that contains the invalidated region. int GetClipBox(HDC hdc, LPRECT lprc); "Sue D. Nom" wrote in message news:3C8D6E5D.69A7C092@courthouse.com... > There is an inconsistency in the TCanvas.ClipRect documentation (see > below). In it, it suggests that one can set the TCanvas.ClipRect to > control drawing, yet ClipRect is a read only property. > > So... how does ClipRect get set? If I have a paintbox that is 300 x > 300 and I Draw a 16 x 16 bitmap onto the paintbox canvas, is the > ClipRect set to only the draw area or is it set to the paintbox > dimensions? > > If I _could_ set the clip rect, would it reduce flicker in non double > buffered OnPaints? >