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

---

# Description

The HorizontalScrollListBox 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://549c1f52-4c5b-41e4-96af-b2319dc1d8ae)

# 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 |
| VerticalTextAlign | Long | Top Center  
Bottom | Center | Vertical 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.

## SetVerticalTextAlign

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

- _TEXT_ALIGNTOP
- _TEXT_ALIGNVCENTER
- _TEXT_ALIGNBOTTOM

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

#### Syntax

```visualbasic
Function SetverticalTextAlign(newverticaltextalign As Long) As Boolean
```

## GetVerticalTextAlign

This function returns VerticalTextAlign.

#### Syntax

```visualbasic
Function GetVerticalTextAlign() 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) .