ComponentFactory.Krypton.Toolkit.MenuItemController.DoesStackedClientMouseDownBecomeCurrent C# (CSharp) Method

DoesStackedClientMouseDownBecomeCurrent() public method

Should a mouse down at the provided point cause the currently stacked context menu to become current.
public DoesStackedClientMouseDownBecomeCurrent ( Point pt ) : bool
pt Point Client coordinates point.
return bool
        public bool DoesStackedClientMouseDownBecomeCurrent(Point pt)
        {
            // If the item is enabled and the mouse is over the sub menu area, then return false
            // because we do not want pressed it to cause the context menu to become current. This
            // cause the showing sub menu to be dismissed.
            if (_menuItem.ItemEnabled)
                return !_menuItem.PointInSubMenu(pt);

            return true;
        }