GefObjectEvents.GetScreenClose (method)

Gets the GefObjectEvent for the specified event type.
Syntax: Set GefObjectEvent = object.GetScreenClose ( Create )
Parameters:
Optional Create As Boolean - If specified as True, an event of this type will be created if one does not already exist. The default is False.
Description: The GetScreenClose method gets or creates the screen close event.

Example:

Sub GefObjectEvents_GetScreenOpen()
    
    Dim oCimObj As GefObject
    Dim oCimObjEvnts As GefObjectEvents
    Dim oCimObjEvnt As GefObjectEvent
    
    Set oCimObj = CimGetObject
    Set oCimObjEvnts = oCimObj.Events
    
    Set oCimObjEvnt = oCimObjEvnts.GetScreenOpen
    If Not oCimObjEvnt Is Nothing Then
        MsgBox "The screen has opened"
    Else
        MsgBox "There are no screen open events configured"
    End If
    
End Sub