---
title: "VerticalScrollListBox"
canonical: "https://docs.cuesystem.com/space/CVCGC/476545046/VerticalScrollListBox"
format: markdown
---
> Macro (toc)

---

# Description

The VerticalScrollListBox enables you to display a list of items to the user that the user can select by click. By scrolling you can reach other items in the list. VisibleLines are displayed in the bar. You can assign an icon to each item.

![image](media://797b9a6f-6247-4bd4-9acc-38e3460939f6)

# Properties

See [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/476577805/ScrollListBox#Properties](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/476577805/ScrollListBox#Properties) . In addition this object uses the following properties.

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Text |
| HorizontalTextAlign | Long | Left Center  
Right | Center | Horizontal align of texts |

# Functions

See [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/476577805/ScrollListBox#Functions](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/476577805/ScrollListBox#Functions) . In addition this object uses the following functions.

## SetHorizontalTextAlign

This function sets horizontal align of value text. You can use constants as parameter

- _TEXT_ALIGNLEFT
- _TEXT_ALIGNHCENTER
- _TEXT_ALIGNRIGHT

Function returns True on success or False if an error occurs (i.e. parameter has wrong value).

#### Syntax

```visualbasic
Function SetHorizontalTextAlign(newhorizontaltextalign As Long) As Boolean
```

## GetHorizontalTextAlign

This function returns HorizontalTextAlign.

#### Syntax

```visualbasic
Function GetHorizontalTextAlign() As Long
```

# Events

See [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/476577805/ScrollListBox#Events](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/476577805/ScrollListBox#Events) .