[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomUpDown.Orientation

Indicates the horizontal or vertical orientation for the button(s) displayed on the control.

## Declaration

Source position: comctrls.pp line 2001

`protected property TCustomUpDown.Orientation : TUDOrientation read FOrientation write SetOrientation default udVertical;`

## Description

Orientation is a TUDOrientation property which indicates the horizontal or vertical orientation for the buttons displayed on the control. The default value for the property is udVertical, and causes the speed buttons to be stacked vertically with the button glyphs drawn in the upwards and downwards directions. Use udHorizontal to orient the buttons side-by-side with their glyphs pointing towards the left and right.

Changing the value for the property causes the positions and sizes for the speed buttons to be updated for the new value in the property. The widgetset class is updated when its handle has been assigned.

Use AlignButton to specify the edge on the Associate control where the buttons are aligned.

## See also

TCustomUpDown.AlignButton |  | AlignButton - how to align the button: left or right.
TCustomUpDown.Associate |  | Control used to display and edit the Position for the control.