OnInactive

<< Click to Display Table of Contents >>

 

OnInactive

OnInactive()

This event occurs while Elipse Power Viewer is inactive and if the EnableInactivity property is set to True. It is triggered when determining that a user is not using Elipse Power Viewer for a period of time equal or greater than the value of the InactivityTime property.

In a script for this event, users may program an action to perform when Elipse Power Viewer is inactive for a certain period of time. For example, users can perform an Elipse Power Viewer logout after 20 minutes without activity, as in the next example.

Sub Viewer_OnInactive()
  Logout(false)
  If MsgBox("This Elipse Power Viewer section was closed
    due to inactivity.") = 0 Then
    Application.GetFrame("").OpenScreen "InitialScreen", 0
End Sub

Was this page useful?