ITrackBar.Orientation

Fore Syntax

Orientation: TrackBarOrientation;

Fore.NET Syntax

Orientation: Prognoz.Platform.Interop.Forms.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.

Fore 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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Forms;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
    TrackBar1.Orientation := TrackBarOrientation.tboVertical As Orientation;
End Sub;

See also:

ITrackBar