Animated gif from resources

Animated gif from resources

Postby Baxajaun » Fri Jan 13, 2017 10:32 pm

Good night,

is it possible to use animated gifs from resources ?

Thanks in advance.

Best regards,
User avatar
Baxajaun
 
Posts: 968
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Animated gif from resources

Postby karinha » Mon Jan 16, 2017 2:34 pm

Maybe with \samples\TESTCF2.PRG
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7613
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Animated gif from resources

Postby Baxajaun » Tue Jan 17, 2017 7:09 am

Thanks Joao !

Thanks to Manuel Alvarez (mastintin) !!!

Code: Select all  Expand view
FUNCTION About()


LOCAL oDlgAbout

define dialog oDlgAbout title "Acerca de ..." size 529,225
activate dialog oDlgAbout CENTERED on init crearGif( oDlgAbout ) // nowait

RETURN NIL

FUNCTION CrearGif( oDlgAbout )
local cfile := "temp.gif"

  RCDATATOFILE( 0,"ACERCADE", cfile )

@ 1, 1 GIF oGif FILE cfile OF oDlgAbout SIZE 529, 225 ADJUST

ferase( cfile )


RETURN NIL


RCDATATOFILE( 0,"ACERCADE", cfile ) is the solution.

Again thanks to mastintin !

Best regards
User avatar
Baxajaun
 
Posts: 968
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 19 guests