ComponentFactory.Krypton.Ribbon.KeyTipControl.KeyTipControl C# (CSharp) Method

KeyTipControl() public method

Initialize a new instance of the KeyTipControl class.
public KeyTipControl ( KryptonRibbon ribbon, KeyTipInfoList keyTips, bool showDisabled ) : System
ribbon KryptonRibbon Reference to owning control instance.
keyTips KeyTipInfoList List of key tips.
showDisabled bool True to show disabled entries, otherwise enabled.
return System
        public KeyTipControl(KryptonRibbon ribbon, 
                             KeyTipInfoList keyTips,
                             bool showDisabled)
        {
            _ribbon = ribbon;
            _showDisabled = showDisabled;

            // Update form properties so we do not have a border and do not show
            // in the task bar. We draw the background in Magenta and set that as
            // the transparency key so it is a show through window.
            StartPosition = FormStartPosition.Manual;
            FormBorderStyle = FormBorderStyle.None;
            ShowInTaskbar = false;
            TransparencyKey = Color.Magenta;

            // Disabled key tips are show semi-transparent
            if (_showDisabled)
                Opacity = 0.5f;

            // Define the initial set of key tips
            SetKeyTips(keyTips);
        }