#include 'fivewin.ch'
static nVeces, aTrayectoria := {{1,1},{1,1},{1,1},{0,1},{0,1},{-1,1},{-1,1},{-1,1},{-1,-1},{-1,-1},{-1,-1},{0,-1},{0,-1},{1,-1},{1,-1},{1,-1}}, ;
aPos := {0,1,2,3,4}
function main()
local oWnd
local oBrush
local nR := 0
local nG := 0
local nB := 0
local oTmr
define brush oBrush color nRGB( nR, nG, nB )
define window oWnd title 'cementerio futuro Katrin Gamboa' //STYLE NOSYSMENU
define timer oTmr interval 150 ACTION MakeSome( oWnd ) OF oWnd
SET BRUSH OF oWnd TO oBrush
ataudes( oWnd )
ACTIVATE TIMER oTmr
activate window oWnd center //on init MakeSome( oWnd )
return nil
function MakeSome( oWnd )
if empty( nVeces )
nVeces = 0
end
mueveataudes( oWnd )
return nil
function ataudes( oWnd )
@ 05 , 05 BTNBMP PROMPT "At2345" SIZE 100,40 PIXEL OF oWnd FLAT ;
ACTION ( msginfo('Wilson Gamboa Nacio en Banios murio en Quito' ) )
@ 05 + 45 , 05 BTNBMP PROMPT "At2346" SIZE 100,40 PIXEL OF oWnd FLAT ;
ACTION ( msginfo('Julio Pazos Nacio en Quito murio en Quito' ) )
@ 05 + 45 * 2, 05 BTNBMP PROMPT "At2347" SIZE 100,40 PIXEL OF oWnd FLAT ;
ACTION ( msginfo('Alfonso Espinoza de los Monteros nacio en Quito NUNCA MORIRA!!' ) )
@ 05 + 45 * 3, 05 BTNBMP PROMPT "At2348" SIZE 100,40 PIXEL OF oWnd FLAT ;
ACTION ( msginfo('Alfonso Espinoza de los Monteros nacio en Quito NUNCA MORIRA!!' ) )
@ 05 + 45 * 4, 05 BTNBMP PROMPT "At2349" SIZE 100,40 PIXEL OF oWnd FLAT ;
ACTION ( msginfo('Alfonso Espinoza de los Monteros nacio en Quito NUNCA MORIRA!!' ) )
return nil
function mueveataudes( oWnd )
local n := 10
local i
local oControl
for i := 1 TO 5
aPos[i] := ( aPos[i] + 1 ) % LEN( aTrayectoria ) + 1
next
for i = 1 to len( oWnd:aControls )
oControl = oWnd:aControls[i]
oControl:nTop = oControl:nTop + aTrayectoria[aPos[i],1]
oControl:nLeft = oControl:nLeft + aTrayectoria[aPos[i],2]
oControl:refresh()
//oControl:nWidth = oControl:nWidth + n
//oControl:nHeight = oControl:nHeight + n
next
return nil