---
title: "VerticalSlider (Generic)"
canonical: "https://docs.cuesystem.com/space/CVCGC/419692582/VerticalSlider%20(Generic)"
format: markdown
---
> Macro (toc)

---

# Properties

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

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Behavior |
| FloodType | Long | 3 = BottomToTop  
4 = TopToBottom | 3 | Direction of flood |
| Appearance |
| AspectRatioMaximum | Double | > 0 | 1.0 | Maximum ratio between graphical data width (W) and height (H) when final graphical result doesn’t show undesirable effects.<br>Recommended value = W / (T + B + 2M) |
| AspectRatioMinimum | Double | > 0 | 0.1 | Minimum ratio between graphical data width (W) and height (H) when final graphical result doesn’t show undesirable effects.<br>Recommended value = W / (T +B) |

# Functions

See section [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/419463184/GenericSliders#Functions](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/419463184/GenericSliders#Functions) . In addition, this object uses the following properties.

## SetFloodType

This function sets FloodType to newfloodtype. Function returns True if newfloodtype is 3 or 4, otherwise it returns False.

#### Syntax

```visualbasic
Function SetFloodType(newfloodtype As Long) As Boolean
```

## GetFloodType

This function returns current FloodType.

#### Syntax

```visualbasic
Function GetFloodType() As Long
```

# Requirements for Graphics

Graphical data (BackgroundPicture, FloodPicture and KnobPicture) must comply with the following rules

- BackgroundPicture and FloodPicturem must have the same dimensions incl. transparent area.
- Top (T) and bottom (B) edge might be unique.
- Middle part (M) must be uniformed in vertical direction.
- KnobPicture width must match BackgroundPicture / FloodPicture width.