コード例 #1
0
        private void btn_PianoRollAction_Click(object sender, EventArgs e)
        {
            int x = btn_PianoRollAction.Left + btn_PianoRollAction.Width;
            int y = btn_PianoRollAction.Top + MainPianoSplitContainer.Top;

            SetPianoActionMenu();
            PianoRollActionMenu.Show(PointToScreen(new Point(x, y)), ToolStripDropDownDirection.BelowRight);
        }
コード例 #2
0
 void pianoRollWindow1_TrackMouseClick(object sender, PianoMouseEventArgs e)
 {
     if (e.MouseEventArgs.Button == MouseButtons.Right)
     {
         SetPianoActionMenu();
         PianoRollActionMenu.Show(PointToScreen(new Point(e.MouseEventArgs.X, e.MouseEventArgs.Y)), ToolStripDropDownDirection.BelowRight);
     }
     else
     {
         Controller.RealaramNoteSelecting();
     }
 }