ComponentOne DynamicHelp for WinForms
C1.Win.C1DynamicHelp.4.8 Assembly / C1.Win.C1DynamicHelp Namespace / UIElementResolver Class / HandleUIElementEvent Method
A UI element for which an event occurred.
One of the UIElementEvents values, determining the type of the event (Enter or Leave).

In This Topic
    HandleUIElementEvent Method
    In This Topic
    Simulates an event for a UI element.
    Syntax
    'Declaration
     
    Public Sub HandleUIElementEvent( _
       ByVal sender As System.Object, _
       ByVal uiElementEvent As UIElementEvents _
    ) 
    public void HandleUIElementEvent( 
       System.object sender,
       UIElementEvents uiElementEvent
    )

    Parameters

    sender
    A UI element for which an event occurred.
    uiElementEvent
    One of the UIElementEvents values, determining the type of the event (Enter or Leave).
    Remarks
    You should call this method whenever one of the UIElementEvents (Enter/Leave) occurs for a UI element that must be handled by your code, that is, the C1DynamicHelp control cannot monitor this UI element for Enter/Leave events automatically (because it does not have those events). By calling this method you notify C1DynamicHelp that an event has occurred, so C1DynamicHelp can show the topic associated with that UI element. Typical usage is to override the ActivateUIElement method, subscribing there to some events that would help you to detect the moments the focus enters/leaves the UI elements, and call HandleUIElementEvent method from those event handlers. In the HandleUIElementEvent call, the sender parameter is the UI element for which an event occurred, and uiElementEvent is the type of the event (Enter or Leave).
    See Also