"Chrissy R" <[EMAIL PROTECTED]> wrote on 8/02/2001 03:25:42:
>
>You are not missing what I am asking. When I resize the form
>I get scroll bars but when I try to scroll the shapes redraw in the
>original position but the scroll bars have moved - the thing just
>does not look or behave correctly. I will look at your project
>and see if it is different than mine and see if it shows what I
>have done wrong.
How are you drawing the shapes Chrissy? If you're drawing direct on
the form's canvas you have to adjust all the coordinates by the
position of the scrollbars. I had all sorts of problems with things
not being properly redrawn doing this, so I used a TImage to draw onto
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.
--
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"