Server/MarqueeLabel.cs
changeset 35 f3893924a6eb
parent 34 59bfa4ebcbbb
child 41 1864e4fd1728
     1.1 --- a/Server/MarqueeLabel.cs	Sun Aug 17 22:30:30 2014 +0200
     1.2 +++ b/Server/MarqueeLabel.cs	Mon Aug 18 23:43:44 2014 +0200
     1.3 @@ -85,6 +85,13 @@
     1.4              CurrentPosition = 0;
     1.5              iBrush = new SolidBrush(ForeColor);
     1.6              //iRequestedContentAlignment = TextAlign;
     1.7 +
     1.8 +            //Following is needed if we ever switch from Label to Control base class. 
     1.9 +            //Without it you get some pretty nasty flicker
    1.10 +            //SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
    1.11 +            //SetStyle(ControlStyles.UserPaint, true);
    1.12 +            //SetStyle(ControlStyles.AllPaintingInWmPaint, true); 
    1.13 +            //SetStyle(ControlStyles.DoubleBuffer, true);
    1.14          }
    1.15  
    1.16          public void UpdateAnimation(DateTime aLastTickTime, DateTime aNewTickTime)