Beispiel #1
0
        private bool ProcessTrackMessage(TrackMousePositionMessage trackMessage)
        {
            this.Location = trackMessage.Location;

            if (HasMoved(this.Location))
            {
                _contextMenuEnabled = false;
            }

            if (this.CaptureHandler != null)
            {
                if (ConstrainToTile(this.CaptureHandler) && !this.TileClientRectangle.Contains(this.Location))
                {
                    SetCursorToken(null);
                    return(true);
                }

                if (this.CaptureHandler.Track(this))
                {
                    SetCursorToken();
                    return(true);
                }
            }

            if (!_tile.Enabled)
            {
                return(true);
            }

            IMouseButtonHandler handler = FindHandlingGraphic(TrackHandler);

            SetCursorToken(handler);
            return(handler != null);
        }
Beispiel #2
0
		private bool ProcessTrackMessage(TrackMousePositionMessage trackMessage)
		{
			this.Location = trackMessage.Location;
						
			if (HasMoved(this.Location))
				_contextMenuEnabled = false;

			if (this.CaptureHandler != null)
			{
				if (ConstrainToTile(this.CaptureHandler) && !this.TileClientRectangle.Contains(this.Location))
				{
					SetCursorToken(null);
					return true;
				}

				if (this.CaptureHandler.Track(this))
				{
					SetCursorToken();
					return true;
				}
			}

			if (!_tile.Enabled)
				return true;

			IMouseButtonHandler handler = FindHandlingGraphic(TrackHandler);
			SetCursorToken(handler);
			return (handler != null);
		}