C# Class MeshExplorer.Controls.DarkSlider

Encapsulates control that visualy displays certain integer value and allows user to change it within desired range. It imitates System.Windows.Forms.TrackBar as far as mouse usage is concerned.
Inheritance: System.Windows.Forms.Control
Exibir arquivo Open project: filipkunc/GLGraphics

Public Methods

Method Description
DarkSlider ( ) : System

Initializes a new instance of the ColorSlider control.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnEnabledChanged ( EventArgs e ) : void

Raises the event.

OnMouseDown ( MouseEventArgs e ) : void

Raises the event.

OnMouseLeave ( EventArgs e ) : void

Raises the event.

OnMouseMove ( MouseEventArgs e ) : void

Raises the event.

OnMouseUp ( MouseEventArgs e ) : void

Raises the event.

OnPaint ( PaintEventArgs e ) : void

Raises the event.

Private Methods

Method Description
DrawColorSlider ( Graphics g ) : void

Draws the colorslider control using passed colors.

DrawDisabledSlider ( Graphics g ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnValueChanged ( ) : void
OnValueChanging ( ) : void
SetProperValue ( int val ) : void

Sets the trackbar value so that it wont exceed allowed range.

Method Details

DarkSlider() public method

Initializes a new instance of the ColorSlider control.
public DarkSlider ( ) : System
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

OnEnabledChanged() protected method

Raises the event.
protected OnEnabledChanged ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void

OnMouseDown() protected method

Raises the event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnMouseLeave() protected method

Raises the event.
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void

OnMouseMove() protected method

Raises the event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnMouseUp() protected method

Raises the event.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnPaint() protected method

Raises the event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A that contains the event data.
return void