コード例 #1
0
ファイル: IntelliMouse.cs プロジェクト: NTDLS/SyntaxBox
 protected virtual void onScroll(ScrollEventArgs e)
 {
     if (Scroll != null)
     {
         Scroll(this, e);
     }
 }
コード例 #2
0
ファイル: IntelliMouse.cs プロジェクト: NTDLS/SyntaxBox
        protected void tmrFeedback_Tick(object sender, EventArgs e)
        {
            ScrollEventArgs a = new ScrollEventArgs();

            a.DeltaX = CurrentDelta.X;
            a.DeltaY = CurrentDelta.Y;
            onScroll(a);
        }
コード例 #3
0
ファイル: EditViewControl.cs プロジェクト: viticm/pap2
		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);

		}
コード例 #4
0
ファイル: IntelliMouse.cs プロジェクト: viticm/pap2
		protected virtual void onScroll(ScrollEventArgs e)
		{
			if (Scroll != null)
				Scroll(this, e);
		}
コード例 #5
0
ファイル: IntelliMouse.cs プロジェクト: viticm/pap2
		protected void tmrFeedback_Tick(object sender, EventArgs e)
		{
			ScrollEventArgs a = new ScrollEventArgs();
			a.DeltaX = CurrentDelta.X;
			a.DeltaY = CurrentDelta.Y;
			onScroll(a);
		}