Orientation: TrackBarOrientation;
Orientation: Prognoz.Platform.Interop.Forms.TrackBarOrientation;
The Orientation property determines orientation of the component on the form.
To determine a component border style, use the ITrackBar.BorderStyle property.
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.
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: