ComponentFactory.Krypton.Toolkit.SeparatorController.MouseUp C# (CSharp) Method

MouseUp() public method

Mouse button has been released in the view.
public MouseUp ( Control c, Point pt, MouseButtons button ) : void
c System.Windows.Forms.Control Reference to the source control instance.
pt Point Mouse position relative to control.
button MouseButtons Mouse button released.
return void
        public override void MouseUp(Control c, Point pt, MouseButtons button)
        {
            // Let base class process up event
            base.MouseUp(c, pt, button);

            // If the mouse up has caused a change in capture
            if (Captured != _moving)
            {
                // We must have lost capture
                _moving = false;

                // Remove the message filter, as long as it is registered
                // it will prevent the class from being garbage collected.
                UnregisterFilter();

                // Callback to the source to show movement has finished
                Point splitPt = RecalcClient(pt);
                _source.SeparatorMoved(pt, splitPt);
            }
        }

Usage Example

Esempio n. 1
0
 internal void DesignMouseUp(MouseButtons button)
 {
     // Pass message directly onto the separator controller
     _separatorController.MouseUp(this, _designLastPt, button);
 }