The samples below uses flash files, Activex and resources:
With Analogic:
- Code: Select all Expand view
#include "fivewin.ch"
function Main()
cPath := cFilePath( GetModuleFileName( GetInstance() ) )
DEFINE DIALOG oWnd RESOURCE "RELOGIO"
oActiveX = TActiveX():Redefine( 10, oWnd, "ShockwaveFlash.ShockwaveFlash.9" )
ACTIVATE DIALOG oWnd CENTERED ;
ON INIT ( oActiveX:SetProp( "wmode", "transparent" ), ;
oActiveX:SetProp( "bgcolor", "EFC725" ), ;
oActiveX:SetProp( "menu", "false" ), ;
oActiveX:Do( "LoadMovie", 0, cPath+"relogio.swf" ) )
RETURN .T.
With Digital:
- Code: Select all Expand view
#include "fivewin.ch"
function Main()
cPath := cFilePath( GetModuleFileName( GetInstance() ) )
DEFINE DIALOG oWnd RESOURCE "RELOGIO"
oActiveX = TActiveX():Redefine( 10, oWnd, "ShockwaveFlash.ShockwaveFlash.9" )
ACTIVATE DIALOG oWnd CENTERED ;
ON INIT ( oActiveX:SetProp( "wmode", "transparent" ), ;
oActiveX:SetProp( "bgcolor", "EFC725" ), ;
oActiveX:SetProp( "menu", "false" ), ;
oActiveX:Do( "LoadMovie", 0, cPath+"digital.swf" ) )
RETURN .T.
The Resource:
- Code: Select all Expand view
RELOGIO DIALOG 14, 10, 167, 122
STYLE DS_SYSMODAL | 0x4L | WS_POPUP | WS_VISIBLE
FONT 8, "MS Sans Serif"
{
CONTROL "", 10, "TActiveX", 0 | WS_CHILD | WS_VISIBLE, 12, 13, 140, 95
}
The flash files:
Analogic
Digital
Rename the .SWF.ZIP files to .SWF and good luck.