# Scrollbar Controls

> Source: https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/scrollbar-controls/overview

Scrollbars are slider controls that can be used to create a spinner control, progress bar or volume slide for a panel object.

## Creating a Scrollbar

To draw a new horizontal or vertical scrollbar on your panel, select the Vertical Scrollbar or Horizontal Scrollbar control tool from the **[Controls Toolbar](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/drawing-and-modifying-panel-objects/controls-toolbox)**. Hold down the left mouse button and drag the mouse to create a rectangle to the desired size. Release the mouse button to create the new object.

For making other adjustments, see **[Modifying Objects](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/drawing-and-modifying-panel-objects/modifying-objects)**.

To define the specific attributes for the new control, see **[Scrollbar Properties](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/scrollbar-controls/overview#scrollbar_properties)**.

## Scrollbar Properties

When creating or editing a *Vertical* or *Horizontal* *Scrollbar* control, the **Vertical** (or **Horizontal**) **Scrollbar Properties** dialogue (pictured below using the **[Folder Style](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/folder-style/using-the-folder-style)** version of the NOMADS designer) is displayed:

|  |  |  |
| --- | --- | --- |
|  | ![](https://manual.pvxplus.com/migration-assets/9e7f93d6a94cd4bdec9978cffc759a0b2567885ff7fad856e64e300fd038bb3b.jpg) | ![](https://manual.pvxplus.com/migration-assets/9eaf4556e988120e4f9d05738b55f337d026b22762323776e48a65526aa8fabd.jpg) |

This dialogue is divided into the following tabbed panels for viewing and/or changing scrollbar properties: **[Display](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/scrollbar-controls/overview#display)**, **[Logic](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/scrollbar-controls/overview#logic)** and **[User Aid](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/scrollbar-controls/overview#useraid)**.

|  |  |
| --- | --- |
| *Name* | Unique name of the scrollbar control (NOMADS provides a default). Naming conventions for variables apply. Click the Browse Library button to copy parameters from an existing object (via the **[Library Browse](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/drawing-and-modifying-panel-objects/library-browse)** dialogue).<br>Note:  <br>When a new control name is entered, it will be checked against the [Reserved Words](https://manual.pvxplus.com/reserved-words) list to determine if it is restricted for use as a NOMADS control name. If it is found, a warning message will display.  <br>  <br>(User Reserved Words Maintenance was added in PxPlus 2020.) |
| **Preview** | Displays how the visible properties of the control will appear at run time. |
| **Display** |  |
| **Position** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Column* \| Starting column for the top left corner of the control - numeric expression. Format mask is ##0.00. Valid entries are 0 to 620. \|<br>\| *Line* \| Starting line for the top left corner of the control - numeric expression. Format mask is ##0.00. Valid entries are 0 to 255. \|<br>*(Support for increased Column and Line maximums was added in PxPlus 2021.)* |
| **Size** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Width* \| Width of the control in number of columns - numeric expression. Format mask is ##0.00. Valid entries are 0 to 620. \|<br>\| *Height* \| Height of the control in number of lines - numeric expression. Format mask is ##0.00. Valid entries are 0 to 255. \|<br>*(Support for increased Width and Height maximums was added in PxPlus 2021.)* |
| **General Attributes** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Tab Stop* \| Adds the control to the tab order list. Allows use of the **Tab** key for moving to the control. \|<br>\| *Initially Disabled* \| Control region is grayed out and is not accessible to the user for input. The control is accessible programmatically. \|<br>\| *Initially Hidden* \| Control is not displayed but is accessible programmatically. \|<br>\| *Enable Scrolling* \| Allows the control to scroll in a resizable/scrollable dialogue box. See **[Panel Resizing](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/resizing-and-persistence/panel-resizing)**. \| |
| **User-Defined Tag Field** | For controls, data/tag field that can be used to pass information on such things as formatting, error messages or validation rules. Field contents are placed in a variable using the control name with a .TAG$ extension. |
| **iNomads Class** | Assign an iNomads class to the control. The iNomads class contains class attribute references used when defining the control in the HTML code generated in iNomads. An iNomads class reference must start with an alpha character (A-Z or a-z), followed by any combination of A-Z, a-z, 0-9, underscore or dash. Multiple references may be entered, separated by a space.<br>For a list of pre-defined iNomads classes, see **[iNomads Classes](https://manual.pvxplus.com/inomads/inomads-classes)**.<br>*(The iNomads Class property was added to Scrollbars in PxPlus 2019.)* |
| **Logic** |  |
| *Default Program* | Displays the name of the **[Default Program](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/panel-header/overview#display)** used in the Panel Header definition.<br>*(The Default Program was added for display in PxPlus 2019.)* |
| **Post Create** | Logic to be processed after the control is drawn. Click the drop-down arrow for a list of selections. See **[Events Logic](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/events-logic/overview)**.<br>Click the Program Logic button beside the *Perform* or *Call* action to launch the default program editor, which is typically the **[\*IT - Integrated Toolkit](https://manual.pvxplus.com/toolkit1/overview)**. To make **[Ed+](https://manual.pvxplus.com/ed-program-editor)** the default program editor, change the setting for the **[%NOMADS'Program_Editor](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#programeditor)** property to *Ed+*.<br>*(The ability to set Ed+ as the default program editor was added in PxPlus 2023.)* |
| **When Receiving Focus** | Logic to execute when the control receives focus. Click the drop-down arrow for a list of selections. See **[Events Logic](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/events-logic/overview)**.<br>Click the Program Logic button beside the *Perform* or *Call* action to launch the default program editor, which is typically the **[\*IT - Integrated Toolkit](https://manual.pvxplus.com/toolkit1/overview)**. To make **[Ed+](https://manual.pvxplus.com/ed-program-editor)** the default program editor, change the setting for the **[%NOMADS'Program_Editor](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#programeditor)** property to *Ed+*.<br>*(The ability to set Ed+ as the default program editor was added in PxPlus 2023.)* |
| **When Scrollbar Repositioned** | Logic to be executed when focus leaves the control or the state of the control has changed. Click the drop-down arrow for a list of selections. See **[Events Logic](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/events-logic/overview)**.<br>Click the Program Logic button beside the *Perform* or *Call* action to launch the default program editor, which is typically the **[\*IT - Integrated Toolkit](https://manual.pvxplus.com/toolkit1/overview)**. To make **[Ed+](https://manual.pvxplus.com/ed-program-editor)** the default program editor, change the setting for the **[%NOMADS'Program_Editor](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#programeditor)** property to *Ed+*.<br>*(The ability to set Ed+ as the default program editor was added in PxPlus 2023.)* |
| **User Aid** |  |
| **Help Reference** | Help text to be invoked at run time by pressing Shift - F1 while focus is on a control.<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Type* \| Select from *External* or *Internal* help types:<br>*External*<br>***(Default)*** Standard Windows help system consisting of a help *File Name* (.*html*, .*hlp*, .*doc*, etc.) and an optional *Keyword* or *Reference* number (*Fixed* value or string *Expression*).<br>*Internal*<br>Application supplied message text (*Fixed* value, string *Expression* or *Message Library Reference*). \|<br>\| *File Name* \| Name of the help file. \|<br>\| *Keyword* \| Indicates that the text in the adjacent field is the index entry for the topic in the indicated help file. \|<br>\| *Reference* \| Indicates that the adjacent field contains the reference number for a specific topic in the context sensitive help. \|<br>\| *Popup* \| Select this check box to display the help topic as a popup rather than as an independent window. \|<br>\| *Test* \| Tests the current help settings. \| |
| **Floating Tip** | Mouse pointer message for the control (*Fixed* value, string *Expression* or *Message Library Reference*). |
| **Message Bar** | Text to be displayed in the panel's status bar when focus is on the control (*Fixed* value, string *Expression* or *Message Library Reference*). |
|  |  |
| *Security* | Security restrictions. See **[Restricting Access](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/security-manager/restricting-access)** for information on **Object Security Definition**. |
| *Groups* | Assign the control to a group. See **[Group Assignment](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/group-assignment)**. |
| *Notes* | Add notes/comments for the control. Maximum 1024 characters.<br>*(The Notes button was added in PxPlus 2023.)* |

## See Also

**[H_SCROLLBAR Properties](https://manual.pvxplus.com/control-object-properties/hscrollbar-properties)  
[H_SCROLLBAR Directive](https://manual.pvxplus.com/directives/h-scrollbar#Mark3)**  
**[V_SCROLLBAR Properties](https://manual.pvxplus.com/control-object-properties/vscrollbar-properties)**  
**[V_SCROLLBAR Directive](https://manual.pvxplus.com/directives/v-scrollbar#Mark3)**
