Example #1
0
            // get the font from the control and draw the current character
            // First delete the old and then draw the new
            public void DrawString(Graphics g, Brush brush, ClockFace cf)
            {
                Font  font       = cf.font;
                Brush blankBrush = new SolidBrush(cf.BackColor);

                g.DrawString(myChar.ToString(), font, blankBrush, oldx, oldy);
                g.DrawString(myChar.ToString(), font, brush, x, y);
            }
Example #2
0
 // constructor takes a string, populates the array
 // and stashes away the calling control (ClockFace)
 public StringDraw(string s, ClockFace theControl)
 {
     this.theControl = theControl;
     foreach (char c in s)
     {
         l = new LtrDraw(c);
         theString.Add(l);
     }
 }