Track Bar
The track bar is a control for selecting from a range of values. It can be configured to automatically spring back to a rest value when released and send a message to a connected device whenever the value changes. Many of the track bar properties can be updated by commands sent from your Arduino sketch.
Property | Access | Type | Method | Description |
---|---|---|---|---|
Orientation | Design-only | Orientation | — | Sets whether the control is horizontal with the numeric value on the right or vertical with the numeric value below the slider |
TickFrequency | Design-only | Integer | — | Sets the number of positions between each tick mark. A tick mark is drawn for every position when TickFrequency is 1, and every 10th position is drawn when it is 10. |
TickStyle | Design-only | TickStyle | — | Sets the location where ticks marks are drawn on the control. Top/left draws tick marks above/left of the thumb for horizontal/vertical orientation; bottom/right draws tick marks below/right of the thumb for horizontal/vertical orientation. Both puts tick marks both above/left and below/right of the thumb |
LargeChange | Design-only | Integer | — | Sets the distance that the slider moves when clicking beside the thumb |
RestValue | Design-only | Integer | — | Value to apply when the control is released if ValueAfterChange is RestValue . |
SmallChange | Design-only | Integer | — | Sets the distance that the value changes when using cursor keys (←, →) to move the thumb |
Minimum | Read/write | Integer | SetMinimum | Sets the minimum value of the control |
Maximum | Read/write | Integer | SetMaximum | Sets the maximum value of the control |
ValueAfterChange | Design-only | FinalValue | RestValue | — | Value to apply when the thumb is released. FinalValue leaves the thumb at the position where it is released. RestValue returns it to RestValue . |
OnMouseChangeDoneSend | Design-only | string | — | The command message to send, if any, to a connected serial device the user has finished changing the thumb position using a mouse. This message is sent when the mouse button is released. |
OnValueChangedSend | Design-only | string | — | The command message to send, if any, to a connected serial device when the value is changed |
This control also supports all the common control properties.