"Chrissy R" <[EMAIL PROTECTED]> wrote on 8/02/2001 10:59:34:
<snip>
>> which solved a bunch of problems.  A TPaintBox would probably do just
>> as well.  Either way, align it to client so that it fills the full
>> scrollable area of the form and you won't have to worry about where 
>> the scrollbars are when you're drawing.
>
>That is the problem that I am having.  Where do I find the TPaintBox
>component?  The TImage component I tried worked but continues to
>redraw forever - not a good look.

No, not good at all :>

TPaintBox should be on the System page of the component palette... the 
icon looks like a paintbrush drawing onto a panel. 

If you're going to use a TPaintBox I'd suggest allocating a TBitmap to 
draw onto, then blit the contents of the bitmap to the paintbox in the 
TPaintBox::OnPaint event.  Either that or put the drawing code in the 
OnPaint, although that makes debugging a pain as it gets called 
whenever a section of the paintbox needs to be redrawn, including when 
the application gets focus after being covered by the debug windows :> 

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to