ITrackBar.Orientation

Syntax

Orientation: TrackBarOrientation;

Description

The Orientation property determines orientation of the component on the form.

Comments

To determine a component border style, use the ITrackBar.BorderStyle property.

Example

Executing the example requires a form containing the Button component with the Button1 identifier and the TrackBar component with the TrackBar1 identifier. Place the TrackBar1 component horizontally.

The example a handler is the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    TrackBar1.Orientation := TrackBarOrientation.Vertical;
End Sub Button1OnClick;

Clicking the Button1 button places the TrackBar1 component vertically.

See also:

ITrackBar