ReleaseCapture() private method

private ReleaseCapture ( ) : bool
return bool
コード例 #1
0
        void MouseButtonUp(Point screenLocation)
        {
            if (_captured)
            {
                _captured = false;
                Win32Helper.ReleaseCapture();
                return;
            }

            // This delay check of 500 ms is inserted to prevent the double-click on the formula list to also be processed
            // as a click on the toolip, launching the help erroneously.
            var nowTicks = DateTime.UtcNow.Ticks;

            if (nowTicks - _showTimeTicks < 5000000)
            {
                return;
            }

            var inLink = _linkClientRect.Contains(PointToClient(screenLocation));

            if (inLink)
            {
                LaunchLink(_linkAddress);
            }
        }
コード例 #2
0
ファイル: ToolTipForm.cs プロジェクト: ruo2012/IntelliSense
        void MouseButtonUp(Point screenLocation)
        {
            if (_captured)
            {
                _captured = false;
                Win32Helper.ReleaseCapture();
                return;
            }

            var inLink = _linkClientRect.Contains(PointToClient(screenLocation));

            if (inLink)
            {
                LaunchLink(_linkAddress);
            }
        }