ComponentFactory.Krypton.Ribbon.LeftDownButtonController.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
                _mouseDown = false;

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

                // Update appearance to reflect current state
                _updateTimer.Start();
            }
        }

Usage Example

コード例 #1
0
        private void ClickFinished(object sender, EventArgs e)
        {
            // Get access to our mouse controller
            LeftDownButtonController controller = (LeftDownButtonController)MouseController;

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