ComponentFactory.Krypton.Ribbon.GroupButtonController.RemoveFixed C# (CSharp) Method

RemoveFixed() public method

Remove the fixed pressed mode.
public RemoveFixed ( ) : void
return void
        public void RemoveFixed()
        {
            if (_fixedPressed)
            {
                // Mouse no longer considered pressed down
                _captured = false;

                // No longer in fixed state mode
                _fixedPressed = false;

                // Update the visual state
                UpdateTargetState(Point.Empty);
            }
        }

Usage Example

コード例 #1
0
        private void ActionFinished(object sender, EventArgs e)
        {
            bool fireAction = true;

            if (e is ToolStripDropDownClosedEventArgs closedArgs)
            {
                if (closedArgs.CloseReason != ToolStripDropDownCloseReason.ItemClicked)
                {
                    fireAction = false;
                }
            }

            // Remove any popups that result from an action occuring
            if ((_ribbon != null) && fireAction)
            {
                _ribbon.ActionOccured();
            }

            // Remove the fixed pressed appearance
            _controller.RemoveFixed();
        }