Пример #1
0
 /// <summary>
 /// Ctor: take parent.
 /// </summary>
 public ZenScrollBar(ZenControlBase parent, SubscribeScrollTimerDelegate subscribeScrollTimer)
     : base(parent)
 {
     this.subscribeScrollTimer = subscribeScrollTimer;
     Width = (int)(Scale * ((float)ZenParams.ScrollBarWidth));
     pad = Width / 4;
     acceleration = acceleration * Scale;
     deceleration = deceleration * Scale;
     maxSpeed = maxSpeed * Scale;
     doInitAnimVals();
     Application.AddMessageFilter(this);
 }