Page 1 of 1

Sprites support for FiveWin

Posted: Wed May 21, 2008 10:46 pm
by Antonio Linares
With AlphaBlending support :-)

This is just a first prototype:
http://rapidshare.com/files/116638322/sprites.zip.html

Code: Select all

#include "FiveWin.ch"

function Main()

   local oBmp, oWnd
   
   DEFINE BITMAP oBmp FILENAME "explorer.bmp"
   
   DEFINE WINDOW oWnd TITLE "Sprites in FiveWin"
   
   @ 2, 2 BUTTON "Sprite" SIZE 80, 20 ;
      ACTION DrawSprite( oWnd:hWnd, 0, 0, 300, 300, oBmp:hBitmap )
   
   ACTIVATE WINDOW oWnd
   
   oBmp:End()

return nil

Re: Sprites support for FiveWin

Posted: Thu May 22, 2008 7:32 am
by Patrick Mast
Haha, love it! ;-)

I can already have ideas on where to use it :)

Patrick