Ejemplo n.º 1
0
        public PropInPlaceDateTime()
        {
            _mouseHook = new MouseHook(this, this);
            _keyboardHook = new KeyboardHook(this, this);

            ShowUpDown = true;
        }
Ejemplo n.º 2
0
            public virtual IntPtr Callback(int nCode, IntPtr wparam, IntPtr lparam)
            {
                IntPtr hookRet = IntPtr.Zero;

                try
                {
                    KeyboardHook hook = (KeyboardHook)_reference.Target;
                    if (hook != null)
                    {
                        hookRet = hook.KeyboardHookProc(nCode, wparam, lparam);
                    }
                }
                catch
                {
                }

                return(hookRet);
            }
Ejemplo n.º 3
0
 // Methods
 public KeyboardHookObject(KeyboardHook parent)
 {
     _reference = new WeakReference(parent, false);
 }
Ejemplo n.º 4
0
        public InternalGrid(PropertyGrid parentCtrl)
        {
#if _XHEOSOURCECODE
            _license = System.ComponentModel.LicenseManager.Validate(typeof(InternalGrid), this);
#endif
            _parentCtrl = parentCtrl;

            SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint |
                Utilities.DoubleBufferStyle | ControlStyles.Opaque, true);

            UpdateStyles();

            LeftColumnWidth = 16;

            GridColor = SystemColors.ActiveBorder;

            _activePropertyCollection = _categorizedPropertyCollection;

            _firstDisplayedPropertyEnumerator = _activePropertyCollection.GetVisibleDeepEnumerator().RightBound.GetVisibleDeepEnumerator();
            _selectedPropertyEnum = _activePropertyCollection.GetVisibleDeepEnumerator().RightBound.GetVisibleDeepEnumerator();

            TabStop = true;

            BackColor = SystemColors.Window;

            _mouseHook = new MouseHook(this, this);
            _messageHook = new MessageHook(this, this);
            _keyboardHook = new KeyboardHook(this, this);
        }
Ejemplo n.º 5
0
 // Methods
 public KeyboardHookObject(KeyboardHook parent)
 {
     _reference = new WeakReference(parent, false);
 }