ComponentFactory.Krypton.Ribbon.ViewRibbonManager.UpdateViewFromPoint C# (CSharp) Method

UpdateViewFromPoint() protected method

Update the active view based on the mouse position.
protected UpdateViewFromPoint ( Control control, Point pt ) : void
control System.Windows.Forms.Control Source control.
pt Point Point within the source control.
return void
        protected override void UpdateViewFromPoint(Control control, Point pt)
        {
            // If our application is inactive
            if (!_active && (CommonHelper.ActiveFloatingWindow == null))
            {
                // And the mouse is not captured
                if (!MouseCaptured)
                {
                    // Then get the view under the mouse
                    ViewBase mouseView = Root.ViewFromPoint(pt);

                    // We only allow application button views to be interacted with
                    if (mouseView is ViewDrawRibbonAppButton)
                        ActiveView = mouseView;
                    else
                        ActiveView = null;
                }
            }
            else
                base.UpdateViewFromPoint(control, pt);
        }