Ejemplo n.º 1
0
        public override void LPaint(MarginBase x, MarginPaintEvent me)
        {
            int ip = me.line + P.LineOffset + 1;

            if (ip > 0 && ip <= (P as TextPanelBase).LinesAvail)
            {
                me.gfx.DrawString(
                    (ip).ToString(),
                    P.Font,
                    SystemBrushes.FromSystemColor(ForeColor),
                    4, me.line * P.Font.Height
                    );
            }
            else
            {
                me.gfx.DrawString(
                    (0).ToString(),
                    P.Font,
                    SystemBrushes.FromSystemColor(SystemColors.ButtonHighlight),
                    4, me.line * P.Font.Height
                    );
            }
        }
Ejemplo n.º 2
0
 /// <summary></summary>
 virtual public void LPaint(MarginBase x, MarginPaintEvent me)
 {
 }