Example #1
0
        public Form1()
        {
            InitializeComponent();
            this.DoubleBuffered = true;
            this.MouseWheel += Form1_MouseWheel;

            mInsert = Insert.None;
            mTimeSpace = new TimeSpace();

            mMouse = new Mouse();
            initMouseShift();
            mMouse.mOnWheelMove = onWheelMove;
            mMouse.mLeft = new ButtonStateVar(MouseButtons.Left, null);
            mMouse.mLeft.mOnClick = onClickL;
            mMouse.mLeft.mOnStartDrag = onStartDragL;
            mMouse.mRight = new ButtonStateVar(MouseButtons.Right, null);
            mMouse.mRight.mOnStartDrag = onStartDragR;
        }
Example #2
0
        public Form1()
        {
            InitializeComponent();
            this.DoubleBuffered = true;
            this.MouseWheel    += Form1_MouseWheel;

            mInsert    = Insert.None;
            mTimeSpace = new TimeSpace();

            mMouse = new Mouse();
            initMouseShift();
            mMouse.mOnWheelMove        = onWheelMove;
            mMouse.mLeft               = new ButtonStateVar(MouseButtons.Left, null);
            mMouse.mLeft.mOnClick      = onClickL;
            mMouse.mLeft.mOnStartDrag  = onStartDragL;
            mMouse.mRight              = new ButtonStateVar(MouseButtons.Right, null);
            mMouse.mRight.mOnStartDrag = onStartDragR;
        }