Beispiel #1
0
 void MyControl_DoubleClick(GuiLabs.Canvas.Events.MouseWithKeysEventArgs e)
 {
     if (Root != null && Root.ActiveBlock is ModifierSeparatorBlock)
     {
         this.SetFocus();
     }
 }
Beispiel #2
0
 protected override void OnMouseUp(GuiLabs.Canvas.Events.MouseWithKeysEventArgs MouseInfo)
 {
     base.OnMouseDown(MouseInfo);
     if (MouseInfo.IsRightButtonPressed)
     {
         AppendNewToken("");
     }
 }
Beispiel #3
0
        //protected override void OnKeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
        //{
        //    if (this.MyControl.IsFocused && !char.IsControl(e.KeyChar))
        //    {
        //        Completion.ShowCompletionList(this);
        //    }
        //}

        //protected override void OnTextHasChanged(ITextProvider changedControl, string oldText, string newText)
        //{
        //    base.OnTextHasChanged(changedControl, oldText, newText);
        //    if (Text.Length > 0)
        //    {
        //        Completion.ShowCompletionList(this, Text);
        //    }
        //    else
        //    {
        //        Completion.HideCompletionList();
        //    }
        //}

        protected override void OnMouseUpRight(GuiLabs.Canvas.Events.MouseWithKeysEventArgs e)
        {
            using (Redrawer r = new Redrawer(Root))
            {
                SetFocus();
                Completion.ShowCompletionList(this);
            }
            e.Handled = true;
        }
 protected override void OnMouseUp(GuiLabs.Canvas.Events.MouseWithKeysEventArgs e)
 {
     if (e.IsRightButtonPressed)
     {
         OnMouseUpRight(e);
     }
     if (!e.Handled)
     {
         base.OnMouseUp(e);
     }
 }
Beispiel #5
0
 protected override int GetMouseCoord(GuiLabs.Canvas.Events.MouseWithKeysEventArgs e)
 {
     return(e.X);
 }
 void MyCollapseButton_MouseDown(GuiLabs.Canvas.Events.MouseWithKeysEventArgs MouseInfo)
 {
     ToggleCollapse(true);
 }
 protected virtual void OnMouseUpRight(GuiLabs.Canvas.Events.MouseWithKeysEventArgs e)
 {
     //MyTextBox.OnShowPopupMenu(e);
     //e.Handled = true;
 }
Beispiel #8
0
 protected override void OnClick(GuiLabs.Canvas.Events.MouseWithKeysEventArgs MouseInfo)
 {
     base.OnClick(MouseInfo);
     view.RootBlock = root;
 }
Beispiel #9
0
 protected virtual void OnShowingPopupMenu(GuiLabs.Canvas.Events.MouseWithKeysEventArgs MouseInfo)
 {
 }