Page 1 of 1

how to display Image in ScrollBox

PostPosted: August 15th, 2009, 4:50 pm
by mac1234mac
Hello,

I'd like to load bitmap in ScrollBox positioned at 100, 100 coordinates of the ScrollBox. But I'd like to do it
from code, not graphically. How can I do it?.

Cheers.

.

Re: how to display Image in ScrollBox

PostPosted: August 20th, 2009, 10:27 am
by stimpakr
I learnt lots from delphi.about.com
Here's a link to a demo showing how to position a TImage inside a scrollbox.
Grab the source code about halfway down the page.
http://delphi.about.com/od/adptips2006/qt/panning.htm
Should get you going :)

cheers
stim