Sign in Join
FPDoc Onlineexperiment

TCustomUpDown.Orientation property

Member of TCustomUpDownprotectedIn unit ComCtrls

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

Declaration

pascal
property 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.