OnInactive

<< Click to Display Table of Contents >>

 

OnInactive

OnInactive()

This event occurs while Elipse Water Viewer is inactive and if the EnableInactivity property is set to True. It is triggered when determining that a user is not using Elipse Water 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 Water Viewer is inactive for a certain period of time. For example, users can perform an Elipse Water Viewer logout after 20 minutes without activity, as in the next example.

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

Was this page useful?