public override void Render(PKGraphics graphics) { base.Render(graphics); if (IsSelected) { PKPoint absPosition = GetAbsPosition(); graphics.DrawRectangle( PKPens.ActiveItem, absPosition.X, absPosition.Y, this.Width, this.Height, this.Corners); } }
/// <summary> /// Render the Item /// </summary> public virtual void Render(PKGraphics graphics) { if (BorderPen != null && BorderPen.Size > 0) { PKPoint absPosition = GetAbsPosition(); graphics.DrawRectangle( BorderPen, absPosition.X, absPosition.Y, this.Width, this.Height, this.Corners); } if (IsSelected) { PKPoint absPosition = GetAbsPosition(); graphics.DrawRectangle( PKPens.SelectedItem, absPosition.X, absPosition.Y, this.Width, this.Height, this.Corners); } }
public override void Render(PKGraphics graphics) { PKPoint absPosition = GetAbsPosition(); base.Render(graphics); graphics.FillRectangle(PKBrushes.GrayWhiteBrush, absPosition.X + this.Padding, absPosition.Y + 2, 18, 18); graphics.DrawRectangle( PKPens.DarkGrayPen, absPosition.X + this.Padding, absPosition.Y + 2, 18, 18); }
public override void Render(PKGraphics graphics) { PKPoint absPosition = GetAbsPosition(); base.Render(graphics); graphics.FillRectangle(PKBrushes.GrayWhiteBrush, absPosition.X + this.Padding, absPosition.Y + 2, this.Width - this.Padding * 2, 20); graphics.DrawRectangle( PKPens.DarkGrayPen, absPosition.X + this.Padding, absPosition.Y + 2, this.Width - this.Padding * 2, 20); graphics.DrawRectangle( PKPens.DarkGrayPen, absPosition.X - this.Padding + this.Width - 18, absPosition.Y + 2, 18, 20); graphics.WriteText("[]", PKBrushes.BlackBrush, this.TextFont, PKHAlign.Center, absPosition.X - this.Padding + this.Width - 18, absPosition.Y + 2, 18, 20); }