Applies to
ListBox and PictureListBox controls
Description
The DisableNoScroll property specifies the behavior of a scroll bar in a list box. If the property is enabled, the scroll bar is always visible, but it is disabled when all the items can be accessed without it. If the property is disabled, the scroll bar is displayed only if it is necessary, based on the number of items and the height of the ListBox or PictureListBox.
Usage
In a painter
To make the scroll bar always visible but disabled when not needed:
-
Select the DisableNoScroll check box on the General page of the control's Properties view.
In scripts
The DisableNoScroll property takes a boolean value. This example for a ListBox displays the scroll bar only when needed:
lb_1.DisableNoScroll = FALSE