protected virtual void onScroll(ScrollEventArgs e) { if (Scroll != null) { Scroll(this, e); } }
protected void tmrFeedback_Tick(object sender, EventArgs e) { ScrollEventArgs a = new ScrollEventArgs(); a.DeltaX = CurrentDelta.X; a.DeltaY = CurrentDelta.Y; onScroll(a); }
private void IntelliMouse_Scroll(object sender, ScrollEventArgs e) { if (e.DeltaY < 0 && vScroll.Value == 0) { this.View.YOffset = 0; this.Redraw(); return; } if (e.DeltaY > 0 && vScroll.Value >= vScroll.Maximum - this.View.VisibleRowCount + 1) { this.View.YOffset = 0; this.Redraw(); return; } _IntelliScrollPos += (double) e.DeltaY/(double) 8; int scrollrows = (int) (_IntelliScrollPos)/this.View.RowHeight; if (scrollrows != 0) { _IntelliScrollPos -= scrollrows*this.View.RowHeight; } this.View.YOffset = -(int) _IntelliScrollPos; this.ScrollScreen(scrollrows); }
protected virtual void onScroll(ScrollEventArgs e) { if (Scroll != null) Scroll(this, e); }
protected void tmrFeedback_Tick(object sender, EventArgs e) { ScrollEventArgs a = new ScrollEventArgs(); a.DeltaX = CurrentDelta.X; a.DeltaY = CurrentDelta.Y; onScroll(a); }