ScrollBar.EnableMouseWheel

Syntax

EnableMouseWheel: Boolean;

Description

The EnableMouseWheel property determines whether slider can be scrolled by a mouse wheel.

Comments

Use the setEnableMouseWheel method to set the property value, and the getEnableMouseWheel 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 the title
caps = Tree.getCaptions();
caps.getCaptions()[0].setWidth(300);
caps.getCaptions()[1].setWidth(300);
// Get scrollbar
scroll = Tree.getScrollBarH();
// Deny scrolling by mouse wheel
scroll.setEnableMouseWheel(false);

After executing the example it is denied to scroll slider by a mouse wheel.

See also:

ScrollBar