====== Slider ======
{{page>commctrl}}
{{page>commstyle}}
{|class="cboxtable"
|-
|class="cboxcell1"|{{ control_slider.gif |}}
|class="cboxcell2"|**TASlider**
|}
Creates a slider (trackbar) control
#remarks_header[Properties:]#
|**Align**|{{KODA>VAR>Align}} |
|**ContextMenu**|{{KODA>VAR>ContextMenu}} |
|**Cursor**|{{KODA>VAR>Cursor}} |
|**Enabled**|False generates GUICtrlSetState(-1, $GUI_DISABLE) |
|**Left,Top**|{{KODA>VAR>Left,Top}} |
|**Width,Height**|{{KODA>VAR>Width,Height}} |
|**Hint**|Text that appears when cursor hovers over control. Generates call to GUICtrlSetTip |
|**Max**|{{KODA>VAR>Max}} |
|**Min**|{{KODA>VAR>Min}} |
|**Name**|{{KODA>VAR>Name}} |
|**OnChange**|Generates (in Message Loop mode) a Case or (in OnEvent mode) a call to GUISetOnEvent and a skeleton event function. Double-click to right to open [[koda:documentation:proped_events_editor]] |
|**Position**|{{KODA>VAR>Position}} |
|**Resizing**|{{KODA>VAR>Resizing}} |
|**TabOrder**|Sequence in which controls are selected with the Tab and S-Tab keys. For a Form and for each Group, TabOrder starts with 0. You may prefer to use the [[dialog_tab_order_editor|TabOrder Visual Editor]]: press C-t to open it. |
|**Visible**|If False, generates GUICtrlSetState(-1, $GUI_HIDE) |
#remarks_header[Styles:]#
|TBS_HORZ|Track bar is horizontal |
|TBS_VERT|Track bar is vertical |
|TBS_AUTOTICKS|Adds tick marks |
|TBS_BOTTOM|Places ticks on bottom of horizontal track bar |
|TBS_TOP|Places ticks on top of horizontal track bar |
|TBS_RIGHT|Places ticks on right of vertical track bar |
|TBS_LEFT|Places ticks on left of vertical track bar |
|TBS_BOTH|Places ticks on both sides of track bar |
|TBS_NOTICKS|Places no ticks on track bar |
|TBS_NOTHUMB|Track bar has no slider |
|TBS_ENABLESELRANGE|Display a selection range (as triangles) |
|TBS_FIXEDLENGTH|Length of control remains the same even if selection range changes |
|WS_TABSTOP|Control can be selected with Tab and S-Tab |
|WS_HSCROLL|{{KODA>VAR>WS_HSCROLL}} |
|WS_VSCROLL|{{KODA>VAR>WS_VSCROLL}} |
|WS_VISIBLE|{{KODA>VAR>WS_VISIBLE}} |
|WS_BORDER|{{KODA>VAR>WS_BORDER}} |
|WS_CLIPSIBLINGS|{{KODA>VAR>WS_CLIPSIBLINGS}} |
#remarks_header[Extra Styles:]#
|WS_EX_CLIENTEDGE|{{KODA>VAR>WS_EX_CLIENTEDGE}}|
|WS_EX_STATICEDGE|{{KODA>VAR>WS_EX_STATICEDGE}} |
#remarks_header[Remarks:]#
To set a selection range, #include and call _GUICtrlSlider_SetSel.
#remarks_header[Related:]#
None