ScrollBar.ScrollButtonsEnabled

Syntax

ScrollButtonsEnabled: Boolean;

Description

The ScrollButtonsEnabled property determines whether scroll buttons are visible.

Comments

Use JSON or the setScrollButtonsEnabled method to set the property value and the getScrollButtonsEnabled method to get the property value.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Display scrollbar by extending title
caps = Tree.getCaptions();
caps.getCaptions()[0].setWidth(300);
caps.getCaptions()[1].setWidth(300);
// Get scrollbar
scroll = Tree.getScrollBarH();
// Hide scroll buttons
scroll.setScrollButtonsEnabled(false);

After executing the example scroll buttons are hidden.

See also:

ScrollBar