nageswaragunupudi wrote:Works with harbour/xharbour 32/64 bits, bcc/msvc/gcc
si ya vi los ejemplos
pero a un no se como usarlo no deja de girar
me pueden orientar
if i already saw the examples
but I don't know how to use it, it doesn't stop spinning
can guide me

Code: Select all | Expand
function miresp2()
local afiles,N
local oDlg, oBrush, oFont, oText, oSmal, oTimer, bAct, bRem, bTimer
local nActual := 0, nTotal := 255, nAdd := 1
local aMeter[ 1 ]
local nRow, lAnimate := .f.
DEFINE BRUSH oBrush FILE "..\bitmaps\sea.bmp" RESIZE
DEFINE FONT oFont NAME "VERDANA" SIZE 0,-20 BOLD
DEFINE FONT oText NAME "TAHOMA" SIZE 0,-18
DEFINE FONT oSmal NAME "TAHOMA" SIZE 0,-14
DEFINE DIALOG oDlg SIZE 800,600 PIXEL TRUEPIXEL ;
FONT oFont BRUSH oBrush ;
TITLE "PROGRESS WHEEL CLASS : " + FWVERSION
nRow := 80
afiles:= Directory("c:\mimaterial\data\*.*")
For N:= 1 to len(afiles)
lzCopyfile("c:\mimaterial\data\" + afiles[N,1], "c:\respaldoMT\data\"+afiles[N,1] )
Next
nTotal := N
nActual:= 0
@ nRow, 40 WHEELMETER aMeter[ 1 ] SIZE 200,200 PIXEL OF oDlg ;
POS nActual RANGE 0, nTotal ;
ANIMACOLOR METRO_AMBER ;
BACKCOLOR METRO_STEEL ;
INNERCOLOR 0x5000ff00 ;
INNERDIA 0.7 ;
TEXT { || "Final : " + cValToChar( nActual ) + CRLF + "Remanente : " + cValToChar( nTotal - nActual ) } ;
FONT oText TEXTCOLOR CLR_WHITE
lAnimate:=.t.
bTimer := <||
if lAnimate
nActual := nAnd( nActual += nAdd, 255 )
AEval( aMeter, { |o| o:SetPos( nActual ) } )
endif
return nil
>
oDlg:bInit := <||
DEFINE TIMER oTimer INTERVAL 150 OF oDlg
oTimer:bAction := bTimer
oTimer:Activate()
return nil
>
if nActual=N
WinExec("Explorer.EXE " + "c:\respaldoMT\")
endif
ACTIVATE DIALOG oDlg CENTERED
return nil
Saluditos

: