Пример #1
0
        private void Editor_TextBox_RightClicked(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                CharIndex_UnderMouse = GeneralMethods.CharIndex_UnderMouse(Editor_TextBox, e.X, e.Y);

                if (Editor_TextBox.SelectedText.Length > 0)
                {
                    highlightMenu.Show(Editor_TextBox, e.Location);
                }
                else if (Editor_TextBox.SelectedText.Length == 0)
                {
                    selMenu.Show(Editor_TextBox, e.Location);
                }
            }
        }