GefObjectEvents.GetWhileLBMouseDown (method)

Gets the GefObjectEvent for the specified event type.
Syntax: Set GefObjectEvent = object.GetWhileLBMouseDown ( 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 GetWhileLBMouseDown method finds or creates a while mouse down event.

Example:

Sub GefObjectEvents_GetWhileLBMouseDown()
    
    Dim oCimObj As GefObject
    Dim oCimObjEvnts As GefObjectEvents
    Dim oCimObjEvnt As GefObjectEvent
    
    Set oCimObj = CimGetObject
    Set oCimObjEvnts = oCimObj.Events
    
    Set oCimObjEvnt = oCimObjEvnts.GetWhileLBMouseDown
    If Not oCimObjEvnt Is Nothing Then
        MsgBox "The event's action name is " & _
            """" & oCimObjEvnt.ActionName & """"
    Else
        MsgBox "There is not a while mouse down event configured"
    End If
    
End Sub