-----------------------
Documentao de Scripts
-----------------------
Domnio: app_hourmeter
08/21/13 15:35:19
-----------------------

<Screen2.CommandButton1:CommandButton1_Click()>
Sub CommandButton1_Click()
'Update
Screen.Item("E3Browser1").Requery()	
End Sub



<Screen2.CommandButton2:CommandButton2_Click()>
Sub CommandButton2_Click()
Application.GetFrame("").OpenScreen "Screen1?100?0", CLng(0)
End Sub



<Screen2.E3Browser1:E3Browser1_OnDrawRow(Selected, Line, RowTextColor, RowBackColor)>
Sub E3Browser1_OnDrawRow(Selected, Line, RowTextColor, RowBackColor)
If Line mod 2 Then
RowBackColor = RGB(255,255,255)
Else
RowBackColor = RGB(210,210,210)
End If	
End Sub



<xcHourmeter.CommandButton2:CommandButton2_Click()>
Sub CommandButton2_Click()
'Open the screen and frame configurated
Application.GetFrame (xcHourmeter.OnFrame).OpenScreen(xcHourmeter.OnScreen), 0	
End Sub



<xcHourmeter.Image1:Image1_Click()>
Sub Image1_Click()
'Invert Value
If xcHourmeter.xoHourmeter.OnOff = True Then
   xcHourmeter.xoHourmeter.OnOff = False
Else xcHourmeter.xoHourmeter.OnOff = True
End If	
End Sub



<xoHourmeter.OnOff:xoHourmeter_OnOnOffChanged()>
Sub xoHourmeter_OnOnOffChanged()
'Add partial value to the total (in seconds)
If OnOff = False Then Total = Total + (Partial / 86400)	
End Sub



<xoHourmeter:xoHourmeter_OnStopRunning()>
Sub xoHourmeter_OnStopRunning()
'Save values
Parent.Save()	
End Sub