ComponentFactory.Krypton.Ribbon.CollapsedGroupController.KeyTipSelect C# (CSharp) Method

KeyTipSelect() public method

Perform actual selection of the item.
public KeyTipSelect ( KryptonRibbon ribbon ) : void
ribbon KryptonRibbon Reference to owning ribbon instance.
return void
        public void KeyTipSelect(KryptonRibbon ribbon)
        {
            OnClick(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));

            // We should have a visual popup for showing the collapsed group
            if (VisualPopupManager.Singleton.IsTracking &&
                (VisualPopupManager.Singleton.CurrentPopup is VisualPopupGroup))
            {
                // Cast to correct type
                VisualPopupGroup popupGroup = (VisualPopupGroup)VisualPopupManager.Singleton.CurrentPopup;

                // Grab the list of key tips from the popup group
                _ribbon.KeyTipMode = KeyTipMode.PopupGroup;
                KeyTipInfoList keyTipList = new KeyTipInfoList();
                popupGroup.ViewGroup.GetGroupKeyTips(keyTipList);

                // Update key tips with those appropriate for this tab
                _ribbon.SetKeyTips(keyTipList, KeyTipMode.PopupGroup);
            }
        }