public override void DrawCore(GuiLabs.Canvas.Renderer.IRenderer Renderer) { if (MyPicture != null) { Renderer.DrawOperations.DrawImage(MyPicture, this.Bounds.Location); } }
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(""); } }
public override void WriteToMemento(GuiLabs.Utils.Memento storage) { storage["name"] = NameBlock.Text; }
public override void ReadFromMemento(GuiLabs.Utils.Memento storage) { NameBlock.Text = storage["name"]; }
protected override void DrawBorder(GuiLabs.Canvas.Renderer.IRenderer Renderer) { }
//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 OnClick(GuiLabs.Canvas.Events.MouseWithKeysEventArgs MouseInfo) { base.OnClick(MouseInfo); view.RootBlock = root; }
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); }
public override void DrawCore(GuiLabs.Canvas.Renderer.IRenderer renderer) { base.DrawCore(renderer); RaiseAfterDraw(renderer); }
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); }
protected override int GetMouseCoord(GuiLabs.Canvas.Events.MouseWithKeysEventArgs e) { return e.X; }
void viewWindow1_Repaint(GuiLabs.Canvas.Renderer.IRenderer Renderer) { repaintCount++; RedrawCounterLabel.Text = repaintCount.ToString(); }