Beispiel #1
0
 protected virtual void onScroll(ScrollEventArgs e)
 {
     if (Scroll != null)
     {
         Scroll(this, e);
     }
 }
Beispiel #2
0
        protected void tmrFeedback_Tick(object sender, EventArgs e)
        {
            var a = new ScrollEventArgs {
                DeltaX = CurrentDelta.X, DeltaY = CurrentDelta.Y
            };

            onScroll(a);
        }
Beispiel #3
0
 protected virtual void onScroll(ScrollEventArgs e)
 {
     if (Scroll != null)
         Scroll(this, e);
 }
Beispiel #4
0
        private void IntelliMouse_Scroll(object sender, ScrollEventArgs e)
        {
            if (e.DeltaY < 0 && vScroll.Value == 0)
            {
                View.YOffset = 0;
                Redraw();
                return;
            }

            if (e.DeltaY > 0 && vScroll.Value >= vScroll.Maximum - View.VisibleRowCount + 1)
            {
                View.YOffset = 0;
                Redraw();
                return;
            }

            _IntelliScrollPos += e.DeltaY/(double) 8;

            int scrollrows = (int) (_IntelliScrollPos)/View.RowHeight;
            if (scrollrows != 0)
            {
                _IntelliScrollPos -= scrollrows*View.RowHeight;
            }
            View.YOffset = - (int) _IntelliScrollPos;
            ScrollScreen(scrollrows);
        }
Beispiel #5
0
 protected void tmrFeedback_Tick(object sender, EventArgs e)
 {
     var a = new ScrollEventArgs {DeltaX = CurrentDelta.X, DeltaY = CurrentDelta.Y};
     onScroll(a);
 }