Exemplo n.º 1
0
 public ScrollText(RadLabel radLabel, Panel panel, RoolDirection roolDirection)
 {
     this.radLabel          = radLabel;
     this.roolDirectionEnum = roolDirection;
     parentWidth            = panel.Width;
     this.lbxWidth          = radLabel.Size.Width;
     lbxXPoint      = radLabel.Location.X;
     lbxYPoint      = radLabel.Location.Y;
     timer          = new System.Timers.Timer();
     timer.Elapsed += Timer_Elapsed;
     timer.Start();
     timer.Interval = 30;
 }
Exemplo n.º 2
0
 public static void FontAutoRool(RadLabel label, Panel panel, RoolDirection roolDirection)
 {
     radLabel          = label;
     roolDirectionEnum = roolDirection;
     radLabel.Location = new Point(lbxInitWidth, label.Location.Y);
     parentWidth       = panel.Width;
     lbxWidth          = radLabel.Size.Width;
     lbxXPoint         = radLabel.Location.X;
     lbxYPoint         = radLabel.Location.Y;
     if (timer != null)
     {
         timer.Stop();
     }
     if (lbxWidth < parentWidth)
     {
         return;
     }
     timer          = new System.Timers.Timer();
     timer.Elapsed += Timer_Elapsed;
     timer.Start();
     timer.Interval = 30;
 }