Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        /// <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);
            }
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }