How I can show one bar in order to show a passed time? and to play each second a sound ?
Example : 2 minutes
#include "FiveWin.ch"
function Main()
local oDlg, oProg
DEFINE DIALOG oDlg TITLE "Progress and timer"
@ 1, 3 PROGRESS oProg POSITION 0 SIZE 120, 10
@ 2.5, 10 BUTTON "End" ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTER ;
ON INIT Timer( oDlg, oProg )
return nil
function Timer( oDlg, oProg )
local oTmr
DEFINE TIMER oTmr INTERVAL 1000 ;
ACTION ( oProg:nPosition += 5, MsgBeep(),;
If( oProg:nPosition == 100, oTmr:End(),) ) OF oDlg
ACTIVATE TIMER oTmr
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 65 guests