Buenas noches,
es posible usar gif animados desde recursos.
Muchas gracias.
Saludos
Buenas noches,
es posible usar gif animados desde recursos.
Muchas gracias.
Saludos
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¡Interesante!
#include "FiveWin.ch"
#include "gif.ch"
FUNCTION About()
LOCAL oDlgAbout
define dialog oDlgAbout title "Acerca de ..." size 529,225
activate dialog oDlgAbout CENTERED ;
ON INIT CrearGif( oDlgAbout )
RETURN NIL
FUNCTION CrearGif( oDlgAbout )
LOCAL oGif
local cfile := "temp.gif"
RCDATATOFILE( 0,"ACERCADE", cfile )
@ 1, 10 GIF oGif FILENAME cfile OF oDlgAbout SIZE 529, 225 ADJUST
ferase( cfile )
RETURN NILHola Joao,
crea un fichero .res con un recurso RCDATA (10) Y llámalo ACERCADE.
Añade el fichero de recurso a la compilación.
Saludos
Baxajaun wrote:Hola Joao,
crea un fichero .res con un recurso RCDATA (10) Y llámalo ACERCADE.
Añade el fichero de recurso a la compilación.
Saludos