home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4611
/
fw16d.ins
/
SAMPLES
/
O2.PRG
< prev
next >
Wrap
Text File
|
1994-06-02
|
2KB
|
76 lines
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function O2()
local oDlg, oBmp1, oBmp2, oBmp3
DEFINE DIALOG oDlg FROM 1, 1 TO 10, 44 TITLE "PROBANDO EL CONTADOR"
// @ 1, 3 SAY "Contador :" OF oDlg SIZE 120, 25
@ 0, 0 BITMAP oBmp1 FILE "..\bitmaps\o2.bmp" OF oDlg
@ 0, 0 BITMAP oBmp2 FILE "..\bitmaps\o2.bmp" OF oDlg
@ 0, 0 BITMAP oBmp3 FILE "..\bitmaps\o2.bmp" OF oDlg
oBmp1:nTop := 28
oBmp1:nLeft := 80
oBmp1:nBottom := 34
oBmp1:nRight := 84
oBmp2:nTop := 28
oBmp2:nLeft := 85
oBmp2:nBottom := 34
oBmp2:nRight := 89
oBmp3:nTop := 28
oBmp3:nLeft := 90
oBmp3:nBottom := 34
oBmp3:nRight := 94
@ 4, 02 BUTTON "&Aumenta" OF oDlg SIZE 40, 12 ;
ACTION Cambia( oBmp1, oBmp2, oBmp3, .T. )
@ 4, 10 BUTTON "&Disminuye" OF oDlg SIZE 40, 12 ;
ACTION Cambia( oBmp1, oBmp2, oBmp3, .F. )
ACTIVATE DIALOG oDlg CENTERED
return
//----------------------------------------------------------------------------//
function Cambia( oBmp1, oBmp2, oBmp3, lSigno )
STATIC nCont := 0
LOCAL n, cCOnt
if ! lSigno .and. nCont == 0
return
endif
nCont := iif( nCont > 999, 0, nCont )
if lSigno
nCont ++
else
nCont --
endif
oBmp3:nX := val( right( str( nCont, 3 ), 1 ) ) * -11
oBmp2:nX := val( substr( str( nCont, 3 ), 2, 1 ) ) * -11
oBmp1:nX := val( left( str( nCont, 3 ), 1 ) ) * -11
oBmp3:Refresh( .F. )
oBmp2:Refresh( .F. )
oBmp1:Refresh( .F. )
return
//---------------------------------------------------------------------------//