Ejemplo n.º 1
0
        private void btn_SelectAction_Click(object sender, EventArgs e)
        {
            int x = btn_SelectAction.Left + btn_SelectAction.Width;
            int y = btn_SelectAction.Top + btn_SelectAction.Height + MainPianoSplitContainer.Top + MainPianoSplitContainer.SplitterDistance + MainPianoSplitContainer.SplitterWidth;

            SetCurveActionMenu();

            ParamCurveTollMenu.Show(PointToScreen(new Point(x, y)), ToolStripDropDownDirection.AboveRight);
        }
Ejemplo n.º 2
0
 void paramCurveWindow1_ParamAreaMouseClick(object sender, ParamMouseEventArgs e)
 {
     if (e.MouseEventArgs.Button == MouseButtons.Right)
     {
         SetCurveActionMenu();
         CurveAction_SetupCurrentToMouse.Visible           = true;
         CurveAction_SetupCurrentToMouse_Separator.Visible = true;
         ParamCurveTollMenu.Show(PointToScreen(new Point(e.MouseEventArgs.X, e.MouseEventArgs.Y + MainPianoSplitContainer.Top + MainPianoSplitContainer.SplitterDistance + MainPianoSplitContainer.SplitterWidth)), ToolStripDropDownDirection.AboveRight);
     }
 }