Exemplo n.º 1
0
        protected override void DoPaint(HCStyle aStyle, RECT aDrawRect, int aDataDrawTop,
                                        int aDataDrawBottom, int aDataScreenTop, int aDataScreenBottom, HCCanvas aCanvas, PaintInfo aPaintInfo)
        {
            if (aPaintInfo.Print)
            {
                if (FEmpty)
                {
                    return;
                }

                aCanvas.StretchPrintDrawBitmap(aDrawRect, FImage);
            }
            else
            {
                aCanvas.StretchDraw(aDrawRect, FImage);
            }

            if (FEmpty)
            {
                aCanvas.Pen.Color = Color.Black;
                aCanvas.Pen.Width = 1;
                aCanvas.Rectangle(aDrawRect);
            }

            FShapeManager.PaintTo(aCanvas, aDrawRect, aPaintInfo);

            base.DoPaint(aStyle, aDrawRect, aDataDrawTop, aDataDrawBottom, aDataScreenBottom, aDataScreenBottom,
                         aCanvas, aPaintInfo);
        }
Exemplo n.º 2
0
        protected override void DoPaint(HCStyle aStyle, RECT aDrawRect, int aDataDrawTop,
                                        int aDataDrawBottom, int aDataScreenTop, int aDataScreenBottom, HCCanvas aCanvas, PaintInfo aPaintInfo)
        {
            if (aPaintInfo.Print)
            {
                aCanvas.StretchPrintDrawBitmap(aDrawRect, FImage);
            }
            else
            {
                aCanvas.StretchDraw(aDrawRect, FImage);
            }

            FShapeManager.PaintTo(aCanvas, aDrawRect, aPaintInfo);

            base.DoPaint(aStyle, aDrawRect, aDataDrawTop, aDataDrawBottom, aDataScreenBottom, aDataScreenBottom,
                         aCanvas, aPaintInfo);
        }