//------------------------------------------------------------------------
        public void HandleMouseDown(System.Windows.Forms.MouseEventArgs e)
        {
            _canvasViewport.FullMode = false;

            UIMouseEventArgs mouseEventArgs = GetTranslatedUIMouseEventArgs(e);

            _topWinEventRoot.RootMouseDown(mouseEventArgs);

            if (_currentCursorStyle != mouseEventArgs.MouseCursorStyle)
            {
                ChangeCursor(_currentCursorStyle = mouseEventArgs.MouseCursorStyle);
            }

            ReleaseUIMouseEventArgs(mouseEventArgs);

            PrepareRenderAndFlushAccumGraphics();
#if DEBUG
            RootGraphic visualroot = this.dbugTopwin.dbugVRoot;
            if (visualroot.dbug_RecordHitChain)
            {
                dbug_rootDocHitChainMsgs.Clear();
                visualroot.dbug_DumpCurrentHitChain(dbug_rootDocHitChainMsgs);
                dbug_InvokeHitChainMsg();
            }
#endif
        }
Exemplo n.º 2
0
        //------------------------------------------------------------------------


        public void HandleMouseDown(PrimaryMouseEventArgs mouseEventArgs)
        {
            _canvasViewport.FullMode = false;
            _topWinEventRoot.RootMouseDown(mouseEventArgs);
            //
            UpdateCursor();

            PrepareRenderAndFlushAccumGraphics();
#if DEBUG
            RootGraphic visualroot = this.dbugTopwin.dbugVRoot;
            if (visualroot.dbug_RecordHitChain)
            {
                dbug_rootDocHitChainMsgs.Clear();
                visualroot.dbug_DumpCurrentHitChain(dbug_rootDocHitChainMsgs);
                dbug_InvokeHitChainMsg();
            }
#endif
        }
Exemplo n.º 3
0
        //------------------------------------------------------------------------
        public void HandleMouseDown(int x, int y, UIMouseButtons b)
        {
            _canvasViewport.FullMode = false;
            _topWinEventRoot.RootMouseDown(
                x + _canvasViewport.ViewportX,
                y + _canvasViewport.ViewportY,
                b);
            if (_currentCursorStyle != _topWinEventRoot.MouseCursorStyle)
            {
                ChangeCursorStyle(_currentCursorStyle = _topWinEventRoot.MouseCursorStyle);
            }

            PrepareRenderAndFlushAccumGraphics();
#if DEBUG
            RootGraphic visualroot = this.dbugTopwin.dbugVRoot;
            if (visualroot.dbug_RecordHitChain)
            {
                dbug_rootDocHitChainMsgs.Clear();
                visualroot.dbug_DumpCurrentHitChain(dbug_rootDocHitChainMsgs);
                dbug_InvokeHitChainMsg();
            }
#endif
        }
Exemplo n.º 4
0
        //------------------------------------------------------------------------
        public void HandleMouseDown(System.Windows.Forms.MouseEventArgs e)
        {
            _canvasViewport.FullMode = false;
            _topWinEventRoot.RootMouseDown(
                e.X + _canvasViewport.ViewportX,
                e.Y + _canvasViewport.ViewportY,
                GetMouseButton(e.Button));
            if (_currentCursorStyle != _topWinEventRoot.MouseCursorStyle)
            {
                ChangeCursorStyle(_currentCursorStyle = _topWinEventRoot.MouseCursorStyle);
            }

            PrepareRenderAndFlushAccumGraphics();
#if DEBUG
            RootGraphic visualroot = this.dbugTopwin.dbugVRoot;
            if (visualroot.dbug_RecordHitChain)
            {
                dbug_rootDocHitChainMsgs.Clear();
                visualroot.dbug_DumpCurrentHitChain(dbug_rootDocHitChainMsgs);
                dbug_InvokeHitChainMsg();
            }
#endif
        }