ComponentFactory.Krypton.Toolkit.KryptonSplitContainerBehavior.OnMouseDown C# (CSharp) Method

OnMouseDown() public method

Called when any mouse-down message enters the adorner window of the BehaviorService.
public OnMouseDown ( System.Windows.Forms.Design.Behavior.Glyph g, MouseButtons button, Point pt ) : bool
g System.Windows.Forms.Design.Behavior.Glyph A Glyph.
button MouseButtons A MouseButtons value indicating which button was clicked.
pt Point The location at which the click occurred.
return bool
        public override bool OnMouseDown(Glyph g, MouseButtons button, Point pt)
        {
            if (_splitContainer != null)
            {
                // Convert the adorner coordinate to the split container client coordinate
                Point splitPt = PointToSplitContainer(g, pt);

                // Notify the split container so it can track mouse message
                if (_splitContainer.DesignMouseDown(splitPt, button))
                {
                    // Splitter is starting to be moved, we need to capture mouse input
                    _splitContainer.Capture = true;
                }
            }

            return base.OnMouseDown(g, button, pt);
        }