Vcl.ComCtrls.TCustomTabControl.ScrollOpposite

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ScrollOpposite: Boolean read FScrollOpposite  write SetScrollOpposite default False;

C++

__property bool ScrollOpposite = {read=FScrollOpposite, write=SetScrollOpposite, default=0};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTabControl

Description

Determines how the rows of tabs are scrolled in a multi-line tab control.

Set ScrollOpposite to determine where previous rows of tabs in a multi-line tab control move when the user selects a tab in another row. When ScrollOpposite is true, previous rows of tabs are moved to the bottom of the tab control if TabPosition is tpTop, or to the top if TabPosition is tpBottom. When ScrollOpposite is false, previous rows of tabs are moved to the back of all other rows of tabs.

For example, in a tab control with three rows of tabs at the top, if the user selects a tab in the second row, ScrollOpposite determines where the first row moves. If ScrollOpposite is true, the second row now appears at the front (bottom) row on top of the tab control, followed by the third row behind (above) it. The first row moves to the bottom of the tab control. If ScrollOpposite is false, the first row moves to the back (top), so that the tab control displays the second row in front (at the bottom of the tab region), followed by the third row (now in the middle), followed by the first row.

Note: Setting ScrollOpposite to true automatically sets the MultiLine property to true.

See Also