Class Pot
Control that represents a potentiometer TODO list: Optional Log scale Optional reverse scale Keyboard control Optional bitmap mode Optional complete draw mode Tooltip support
public class Pot : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
- Inheritance
-
Pot
- Implements
- Inherited Members
Constructors
Pot()
Creates a new pot control
public Pot()
Properties
Maximum
Maximum Value of the Pot
public double Maximum { get; set; }
Property Value
Minimum
Minimum Value of the Pot
public double Minimum { get; set; }
Property Value
Value
The current value of the pot
public double Value { get; set; }
Property Value
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed; otherwise, false.
OnMouseDown(MouseEventArgs)
Handles the mouse down event to allow changing value by dragging
protected override void OnMouseDown(MouseEventArgs e)
Parameters
OnMouseMove(MouseEventArgs)
Handles the mouse down event to allow changing value by dragging
protected override void OnMouseMove(MouseEventArgs e)
Parameters
OnMouseUp(MouseEventArgs)
Handles the mouse up event to allow changing value by dragging
protected override void OnMouseUp(MouseEventArgs e)
Parameters
OnPaint(PaintEventArgs)
Draws the control
protected override void OnPaint(PaintEventArgs e)
Parameters
Events
ValueChanged
Value changed event
public event EventHandler ValueChanged