[]
        
(Showing Draft Content)

FarPoint.Win.PopupWindowHelperMessageFilter

PopupWindowHelperMessageFilter Class

A Message Loop filter which detects mouse events while the popup form is shown and notifies the owning PopupWindowHelper class when a mouse click outside the popup occurs.

Inheritance
PopupWindowHelperMessageFilter
Implements
Namespace: FarPoint.Win
Assembly: FarPoint.Win.dll
Syntax
public class PopupWindowHelperMessageFilter : IMessageFilter
Public Class PopupWindowHelperMessageFilter
    Implements IMessageFilter

Constructors

Name Description
PopupWindowHelperMessageFilter(PopupWindowHelper, Control)

Constructs a new instance of this class and sets the owning object.

Properties

Name Description
Popup

Gets or sets the popup form which is being displayed.

Methods

Name Description
OnCancelPopup(PopupCancelEventArgs)

Raises the PopupCancel event.

PreFilterMessage(ref Message)

Checks the message loop for mouse messages while the popup window is displayed. If one is detected the position is checked to see if it is outside the form, and the owner is notified if so.

Events

Name Description
PopupCancel

Raised when the Popup Window is about to be cancelled. The Cancel property can be set to true to prevent the form from being cancelled.