Exemplo n.º 1
0
        protected override void OnTextChanged(EventArgs e)
        {
            if (this.registeredHotKey != Keys.None)
            {
                PdnBaseForm.UnregisterFormHotKey(this.registeredHotKey, new Func <Keys, bool>(this.OnAccessHotKeyPressed));
            }
            char mnemonic = this.Mnemonic;

            if ((mnemonic != '\0') && !base.IsOnDropDown)
            {
                Keys keys = KeysUtil.FromLetterOrDigitChar(mnemonic);
                PdnBaseForm.RegisterFormHotKey(Keys.Alt | keys, new Func <Keys, bool>(this.OnAccessHotKeyPressed));
            }
            base.OnTextChanged(e);
        }
Exemplo n.º 2
0
 public DocumentStrip()
 {
     PdnBaseForm.RegisterFormHotKey(Keys.Control | Keys.Tab, new Func <Keys, bool>(this.OnNextTabHotKeyPressed));
     PdnBaseForm.RegisterFormHotKey(Keys.Control | Keys.Shift | Keys.Tab, new Func <Keys, bool>(this.OnPreviousTabHotKeyPressed));
     using (ISynchronizationContext context = SynchronizationContextDispatcher.CreateRef())
     {
         this.thumbnailManager = new ThumbnailManager(context);
     }
     base.Name = "DocumentStrip";
     for (int i = 1; i <= 9; i++)
     {
         Keys keys = KeysUtil.FromLetterOrDigitChar((char)(i + 0x30));
         PdnBaseForm.RegisterFormHotKey(Keys.Control | keys, new Func <Keys, bool>(this.OnDigitHotKeyPressed));
         PdnBaseForm.RegisterFormHotKey(Keys.Alt | keys, new Func <Keys, bool>(this.OnDigitHotKeyPressed));
     }
     base.ShowCloseButtons = true;
 }