Page 1 of 1

Window Background

Posted: Tue Apr 18, 2006 11:59 pm
by TimStone
I have a .bmp that I created for a window background. The problem is that it will tile, and I only want it to be shown once.

Can we set a background any other way than with a brush ?

Tim

Posted: Wed Apr 19, 2006 12:42 am
by James Bott
Tim,

Try this:

define bitmap oBmp file "logo.bmp"

define window oWnd...;
on paint PalBmpDraw( oWnd:oWndClient:hDC, (oWnd:nHeight/2-oBmp:nHeight/2)-50,(oWnd:nWidth/2-oBmp:nWidth/2), oBmp:hBitmap, oBmp:hPalette )

James