you could derive from TScrollbox and override the
constructor to construct one of your old TPanel
descendent objects as it's child control.
Then export properties/methods of your old TPanel
object by duplicating the interface in this
new thing and forwarding all the calls to your
old object.
ns
-----Original Message-----
From: Leo Ramakers <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Thursday, August 17, 2000 12:24
Subject: [DUG]: Scrolling tPanel
I have an object which descends from tPanel which draws graphical
elements to the Canvas property. I now need to add 'scrolling' to the
canvas, in other words to have scroll bars for the images I painted on
the canvas. Unfortunately the tScrollbox doesnt have a canvas, so I cant
descend from that. Can anyone recommend an appropriate component, or
point me to the scroll box canvas.
Thanks
Leo
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz