Digital and Analogic clock in your aplications, Easy!!!
Posted: Thu Dec 27, 2007 12:40 am
Friends,
The samples below uses flash files, Activex and resources:
With Analogic:
With Digital:
The Resource:
The flash files:
Analogic
Digital
Rename the .SWF.ZIP files to .SWF and good luck.
The samples below uses flash files, Activex and resources:
With Analogic:
Code: Select all
#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.
Code: Select all
#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.
Code: Select all
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
}
Analogic
Digital
Rename the .SWF.ZIP files to .SWF and good luck.