# HG changeset patch # User StephaneLenclud # Date 1408398224 -7200 # Node ID f3893924a6ebea38feea24530cf579e8e69364a4 # Parent 59bfa4ebcbbbad9393af9a6413783f8d7a7ea2e1 Tried using Control instead of Label as base class for our Marquee. Sticking to Label for now. diff -r 59bfa4ebcbbb -r f3893924a6eb Server/MarqueeLabel.cs --- a/Server/MarqueeLabel.cs Sun Aug 17 22:30:30 2014 +0200 +++ b/Server/MarqueeLabel.cs Mon Aug 18 23:43:44 2014 +0200 @@ -85,6 +85,13 @@ CurrentPosition = 0; iBrush = new SolidBrush(ForeColor); //iRequestedContentAlignment = TextAlign; + + //Following is needed if we ever switch from Label to Control base class. + //Without it you get some pretty nasty flicker + //SetStyle(ControlStyles.OptimizedDoubleBuffer, true); + //SetStyle(ControlStyles.UserPaint, true); + //SetStyle(ControlStyles.AllPaintingInWmPaint, true); + //SetStyle(ControlStyles.DoubleBuffer, true); } public void UpdateAnimation(DateTime aLastTickTime, DateTime aNewTickTime)