PositionPanel Class

Source: Controls/PosPanel.cs · Assembly: Dew.Math.Controls
PanelPositionPanel

public class PositionPanel : Panel

Panel with customized slider.

Properties

NameTypeDescription
CancelMouseBooleanIf false, it is possible to drag the slider with the mouse.
SliderColorColorDefines the color of the slider.
SliderMaxDoubleDefines the maximum for definition range within which the slider can move.
SliderMinDoubleDefines the minimum for definition range within which the slider can move.
SliderPositionDoubleDefines the position of the left most edge of the slider.
SliderRangeDoubleSlider range, defined as SliderMax - SliderMin.
SliderSpanDoubleSpecifies the span of the slider. Span is usually smaller than and would be equal only for example when the "progress indicator" reaches "100%".
SliderSpanMinInt32The slider will not shrink below some minimum pixel size even if value would require it to be smaller.

Methods

NameDescription
ctorConstructor.
SliderResetSets all slider properties to zero.

Events

NameDescription
ChangePositionOccurs each time the property changes.
SetPositionOccurs after the user releases the mouse button after dragging the slider.