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

TCustomTrackBar.Orientation

Indicates the horizontal or vertical orientation for the track bar control.

Declaration

Source position: comctrls.pp line 2784

published property TCustomTrackBar.Orientation : TTrackBarOrientation
  read FOrientation
  write SetOrientation
  default trHorizontal;

Description

Orientation is a TTrackBarOrientation property which indicates whether the track bar is oriented horizontally or vertically. The default value for the property is trHorizontal.

Changing the value for the property causes values in Width and Height to be swapped to reflect the new orientation for the control. Left and Top coordinates for the control are not changed. The Constraints are updated in the LCL interface and the new property value is posted to the widgetset class instance when its Handle has been allocated.

See also

TTrackBarOrientation

  

Enumerated type with values that represent the orientation for a track bar.

TControl.Width

  

The horizontal size for the control.

TControl.Height

  

The vertical size for the control.

TControl.Constraints

  

Contains the minimum and maximum Width and Height for the control.


Version 4.0 Generated 2025-05-03 Home