# Scrollbar Controls

> Source: https://manual.pvxplus.com/pxplus-user-guide/graphical-user-interfaces/control-objects/scrollbars

**V_SCROLLBAR** *ctl_id*, @(*col,ln,wth,ht*) = *contents$* \[, *ctrlopt* \]
**V_SCROLLBAR** *ctl_id* **WINDOW \[** *,ctrlopt* **\]**  
**V_SCROLLBAR** { **REMOVE** | **DISABLE** | **ENABLE** } *ctl_id* \[, **ERR=** *stmtref* \]
**V_SCROLLBAR {GOTO** | **HIDE** | **SHOW}** *ctl_id* **\[,ERR=** *stmtref* **\]**  
**V_SCROLLBAR READ** *ctl_id, setting, max,* **\[** *rgn_chg* **\]\[** *,arrow_chg* **\]\[,ERR=** *stmtref* **\]
V_SCROLLBAR WRITE** *ctl_id, marker, max* **\[,ERR=** *stmtref* **\]**  
**H_SCROLLBAR** *ctl_id*, @(*col,ln,wth,ht*) = *contents$* \[, *ctrlopt* \] **...**

Vertical and horizontal scrollbars are controls that can be used to create a slider, spinner, and progress bar object. For syntax details, see **[H_SCROLLBAR](https://manual.pvxplus.com/directives/h-scrollbar)** and **[V_SCROLLBAR](https://manual.pvxplus.com/directives/v-scrollbar)** directives.

For information on adding a horizontal or vertical scrollbar on a panel using the **[NOMADS Panel Designer](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/introduction)**, see **[Scrollbar Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/scrollbar-controls/overview)**.

For a list of properties that can be applied to ***scrollbars***, see **[V_Scrollbar Properties](https://manual.pvxplus.com/control-object-properties/vscrollbar-properties)** and **[H_Scrollbar Properties](https://manual.pvxplus.com/control-object-properties/hscrollbar-properties)**.

***Example:***

```
V_SCROLLBAR 100,@(50,2,2,20)
V_SCROLLBAR WRITE 100,5,10

H_SCROLLBAR 10000,@(5,21,40,1)
H_SCROLLBAR WRITE 10000,10,50
H_SCROLLBAR READ 10000,X,50,1,10
PRINT X
10
```

![](https://manual.pvxplus.com/migration-assets/547a656abdb91cb63f4e0c4682466482d94e1349327a4d4df8366019cec40a0f.jpg)
