FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Sprites support for FiveWin
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Sprites support for FiveWin
Posted: Wed May 21, 2008 10:46 PM
With AlphaBlending support :-)

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

#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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Re: Sprites support for FiveWin
Posted: Thu May 22, 2008 07:32 AM

Haha, love it! ;-)

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

Patrick

Continue the discussion