Sign in Join
FPDoc Onlineexperiment

TToolBar.Orientation property

Member of TToolBarpublishedIn unit ComCtrls

Indicates the orientation and layout direction for the buttons on the tool bar.

Declaration

pascal
property Orientation: TToolBarOrientation read FOrientation write SetOrientation default tboAutomatic;

Description

TToolBar is a TToolBarOrientation property which indicates the orientation for the tool bar on a parent control or form. TToolBar contains one of the values from the TTooBarOrientation property. The default value is tboAutomatic and indicates the orientation is determined by the setting used in the Align property.

In short, using tboHorizontal or tboVertical causes Align to be ignored. Using tboAutomatic allows Align to be used to determine the orientation for the tool bar buttons. When using tboAutomatic in Orientation and alNone in Align, the tool bar orientation can be flipped when wrapping occurs and the dimensions for the control are changed. TToolbar instances on a TCoolBar parent control are oriented using the Vertical property for the parent control.

Changing the value for the property causes the control to be redrawn.

Use IsVertical to determine whether tboVertical has been explicitly assigned to the Orientation property, or the Align property requires the orientation.

Added in LCL version 5.0.

See also

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