Пример #1
0
 public MouseButtonHidButton(CustomInputControl parent, Classes.CustomInput.CustomInputControl controlDesc)
     : base(parent, controlDesc)
 {
     this.CanHold       = true;
     this.Image         = Properties.Resources.mouse;
     this.DownImage     = Properties.Resources.mouse_down;
     this.SelectedImage = Properties.Resources.mouse_sel;
 }
Пример #2
0
            public HidButton(CustomInputControl parent, Classes.CustomInput.CustomInputControl controlDesc)
            {
                _parent      = parent;
                _controlDesc = controlDesc;

                this.CatchKey      = controlDesc.CatchKey;
                this.ModifierState = controlDesc.ModifierState;

                this.ButtonClick       += new EventHandler(HidButton_ButtonClick);
                this.ButtonDoubleClick += new EventHandler(HidButton_ButtonClick);
                this.ButtonDown        += new EventHandler(HidButton_ButtonDown);
                this.ButtonUp          += new EventHandler(HidButton_ButtonUp);
                this.ButtonHold        += new EventHandler(HidButton_ButtonHold);
            }
Пример #3
0
            public ContainerPanel(CustomInputControl parent, Classes.CustomInput.CustomInputControl controlDesc)
            {
                _desc = controlDesc;

                this.Width  = controlDesc.Width;
                this.Height = controlDesc.Height;
                this.Left   = controlDesc.Left;
                this.Top    = controlDesc.Top;

                this.Anchor = controlDesc.Anchor;
                this.Dock   = controlDesc.Dock;

                ParseChildren(parent, controlDesc.Controls, this.Controls);
            }
Пример #4
0
            public HidButton(CustomInputControl parent, Classes.CustomInput.CustomInputControl controlDesc)
            {
                _parent = parent;
                _controlDesc = controlDesc;

                this.CatchKey = controlDesc.CatchKey;
                this.ModifierState = controlDesc.ModifierState;

                this.ButtonClick += new EventHandler(HidButton_ButtonClick);
                this.ButtonDoubleClick += new EventHandler(HidButton_ButtonClick);
                this.ButtonDown += new EventHandler(HidButton_ButtonDown);
                this.ButtonUp += new EventHandler(HidButton_ButtonUp);
                this.ButtonHold += new EventHandler(HidButton_ButtonHold);
            }
Пример #5
0
            public ContainerPanel(CustomInputControl parent, Classes.CustomInput.CustomInputControl controlDesc)
            {
                _desc = controlDesc;

                this.Width = controlDesc.Width;
                this.Height = controlDesc.Height;
                this.Left = controlDesc.Left;
                this.Top = controlDesc.Top;

                this.Anchor = controlDesc.Anchor;
                this.Dock = controlDesc.Dock;

                ParseChildren(parent, controlDesc.Controls, this.Controls);
            }
Пример #6
0
 public KeyboardHidButton(CustomInputControl parent, Classes.CustomInput.CustomInputControl controlDesc)
     : base(parent, controlDesc)
 {
     this.CanHold = false;
 }