C# Class Smrf.AppLib.TrackBarWithDelay

TrackBar control that delays its TrackBar.Scroll event until the thumb has stopped moving.
This control fires a TrackBar.Scroll event milliseconds after the thumb was last moved. Use this control instead of TrackBar in applications where the event handler code is slow and handling every TrackBar.Scroll event would result in sluggish performance.
Inheritance: System.Windows.Forms.TrackBar
Show file Open project: 2014-sed-team3/term-project

Protected Properties

Property Type Description
m_oDelayTimer System.Windows.Forms.Timer

Public Methods

Method Description
TrackBarWithDelay ( ) : System

Initializes a new instance of the TrackBarWithDelay class.

Protected Methods

Method Description
OnScroll ( EventArgs e ) : void
m_oDelayTimer_Tick ( object sender, EventArgs e ) : void

Private Methods

Method Description
AssertValid ( ) : void

Method Details

OnScroll() protected method

protected OnScroll ( EventArgs e ) : void
e System.EventArgs
return void

TrackBarWithDelay() public method

Initializes a new instance of the TrackBarWithDelay class.
public TrackBarWithDelay ( ) : System
return System

m_oDelayTimer_Tick() protected method

protected m_oDelayTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

m_oDelayTimer protected property

protected Timer,System.Windows.Forms m_oDelayTimer
return System.Windows.Forms.Timer