Beispiel #1
0
        /// <inheritdoc />
        protected override void OnMouseMove(MouseEventArgs e)
        {
            base.OnMouseMove(e);
            var notePosition = ScoreProvider.GetNotePosition(e);

            if (notePosition != null && notePosition != _oldHighlightedNote)
            {
//				toolTip1.Hide(this);
            }
        }
Beispiel #2
0
        /// <inheritdoc />
        protected override void OnMouseClick(MouseEventArgs e)
        {
            base.OnMouseClick(e);
            var notePosition = ScoreProvider.GetNotePosition(e);

            if (notePosition != null)
            {
                if (e.Button.HasFlag(MouseButtons.Right))
                {
                    toolTip1.BackColor = Color.FromArgb(148, 223, 223, 223);
                    _isNoteToolTip     = true;
                    _mousePoint        = PointToScreen(e.Location);
                    toolTip1.Show(ToolTipText(e), this, 2500);
                }
                HighlightNotePosition(notePosition, Rectangle.Empty, false);
            }
        }