#include "FiveWin.ch"
static oWnd
//----------------------------------------------------------------------------//
function Main()
local oTmr, oSay, oFnt
DEFINE
FONT oFnt NAME "Advanced Dot
Digital-7" SIZE 0, -30
DEFINE WINDOW oWnd TITLE "Prueba"
@ 2, 2 SAY oSay PROMPT "Venezuela Caracas GM "+time() COLOR "GR+/W*"
FONT oFnt SIZE 450, 150
DEFINE TIMER oTmr INTERVAL 700 ACTION ChangeColor( oSay ) OF oWnd
ACTIVATE TIMER oTmr
ACTIVATE WINDOW oWnd
oFnt:End()
return nil
//----------------------------------------------------------------------------//
function ChangeColor( oSay )
static lStatus := .F.
static lStatus1 := .F.
if lStatus
oSay:SetColor( "GR+/W*" )
else
oSay:SetColor( "b+/W*" )
endif
oSay:Refresh()
lStatus = ! lStatus
lStatus1 = ! lStatus
return nil
//----------------------------------------------------------------------------//