Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question
#1
I got the timer down ty, but iam having troubles making the timer into seconds like 00:00 instead of just :0 ,,can u show me where i have to add my code to make it show hrs Min and Seconds plz...ty in advance


ret
messages
double+ g_speed
if(message=WM_INITDIALOG) DT_Init(hDlg lParam)
int param=DT_GetParam(hDlg)
sel message
,if(!g_speed) g_speed=0.1
,;select item that match current speed
,_i=g_speed*1000
,sel _i
,,case 10 _i=0
,,case 100 _i=1
,,case 1000 _i=2
,,case else ret 1
,CB_SelectItem(id(6 hDlg) _i)
case WM_INITDIALOG
DT_Init hDlg lParam
SetTimer hDlg 1 1000 0
ret 1
case WM_INITDIALOG
ret 1
case WM_TIMER
str s.getwintext(id(3 hDlg)); s=val(s)+1; s.setwintext(id(3 hDlg))
case WM_DESTROY DT_DeleteData(hDlg)
case WM_COMMAND goto messages2
messages2


Forum Jump:


Users browsing this thread: 1 Guest(s)