You are on page 1of 1

4/17/2014

Setting up background images for forms in Delphi - Stack Overflow

1. Put a T I m a g eon your form. Make sure it's behind all other controls on the form. You can right-click it and choose the "send to back" menu option. 2. Load a graphic. v a r i m g :T B i t m a p ; b e g i n i m g: =T B i t m a p . C r e a t e ; t r y i m g . L o a d F r o m F i l e ( ' S : \ b a c k g r o u n d . b m p ' ) ; 3. Assign it to the image control. I m a g e 1 . P i c t u r e: =i m g ; 4. Clean up. f i n a l l y i m g . F r e e ; e n d ; e n d ; You can also combine the last three steps to load the graphic and put it in the image control all at once. Thanks to Jon for the suggestion. I m a g e 1 . P i c t u r e . L o a d F r o m F i l e ( ' B : \ b a c k g r o u n d . b m p ' ) ;

http://stackoverflow.com/questions/1849859/setting-up-background-images-for-forms-in-delphi

1/1

You might also like