Article ID: 141972
Article Last Modified on 12/23/2005
? SYS(1270)
Interval = 1000 && Calls the Timer event every second. PROCEDURE Timer Event
x=sys(1270) DO CASE CASE TYPE('x')='O' IF x.name != 'Screen' ** Increments the value by 1 if your mouse is over ** an Object that is not the FoxPro Desktop Thisform.Text1.Value = Thisform.Text1.Value + 1 ENDIF CASE TYPE('x') = 'L' ** Increments the value by 1 if your mouse is not over ** an Object Thisform.Text1.Value = Thisform.Text1.Value + 1 ENDCASE ENDPROC
ENDPROC**************** End Code *******************
Additional query words: VFoxWin
Keywords: kbcode KB141972