Beispiel #1
0
 public override void DrawCore(GuiLabs.Canvas.Renderer.IRenderer Renderer)
 {
     if (MyPicture != null)
     {
         Renderer.DrawOperations.DrawImage(MyPicture, this.Bounds.Location);
     }
 }
Beispiel #2
0
 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;
 }
 protected override void OnMouseUp(GuiLabs.Canvas.Events.MouseWithKeysEventArgs e)
 {
     if (e.IsRightButtonPressed)
     {
         OnMouseUpRight(e);
     }
     if (!e.Handled)
     {
         base.OnMouseUp(e);
     }
 }
 protected override void OnMouseUp(GuiLabs.Canvas.Events.MouseWithKeysEventArgs MouseInfo)
 {
     base.OnMouseDown(MouseInfo);
     if (MouseInfo.IsRightButtonPressed)
     {
         AppendNewToken("");
     }
 }
Beispiel #6
0
 public override void WriteToMemento(GuiLabs.Utils.Memento storage)
 {
     storage["name"] = NameBlock.Text;
 }
Beispiel #7
0
 public override void ReadFromMemento(GuiLabs.Utils.Memento storage)
 {
     NameBlock.Text = storage["name"];
 }
Beispiel #8
0
 protected override void DrawBorder(GuiLabs.Canvas.Renderer.IRenderer Renderer)
 {
 }
Beispiel #9
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;
 }
Beispiel #10
0
 protected override void OnClick(GuiLabs.Canvas.Events.MouseWithKeysEventArgs MouseInfo)
 {
     base.OnClick(MouseInfo);
     view.RootBlock = root;
 }
Beispiel #11
0
 protected override void OnTextHasChanged(GuiLabs.Canvas.Controls.ITextProvider changedControl, string oldText, string newText)
 {
     if (Completion.Visible)
     {
         if (!Completion.ExistingItemsHavePrefix(this.Text))
         {
             Completion.HideCompletionList();
         }
         else
         {
             Completion.ShowCompletionList(this, this.Text);
         }
     }
     base.OnTextHasChanged(changedControl, oldText, newText);
 }
Beispiel #12
0
 public override void DrawCore(GuiLabs.Canvas.Renderer.IRenderer renderer)
 {
     base.DrawCore(renderer);
     RaiseAfterDraw(renderer);
 }
Beispiel #13
0
 protected virtual void OnShowingPopupMenu(GuiLabs.Canvas.Events.MouseWithKeysEventArgs MouseInfo)
 {
 }
 public void DrawLine(GuiLabs.Canvas.Point p1, GuiLabs.Canvas.Point p2, ILineStyleInfo theStyle)
 {
     mGraphics.DrawLine(((GDIPlusLineStyle)theStyle).Pen, p1.X, p1.Y, p2.X, p2.Y);
 }
Beispiel #15
0
 protected override int GetMouseCoord(GuiLabs.Canvas.Events.MouseWithKeysEventArgs e)
 {
     return e.X;
 }
Beispiel #16
0
 void viewWindow1_Repaint(GuiLabs.Canvas.Renderer.IRenderer Renderer)
 {
     repaintCount++;
     RedrawCounterLabel.Text = repaintCount.ToString();
 }