DisableDragDrop  DisplayEveryNLabels

Chapter 3: Property Descriptions and Usage

DisableNoScroll

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 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.

NoteSmartphone platform On Smartphone platforms, ListBox controls are converted to spinner controls. The spinner control does its own scroll management, and a scroll bar displays only if there are more items than can be accomodated on a single screen.

Usage


In a painter

StepsTo make the scroll bar always visible but disabled when not needed:

  1. 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





Copyright © 2004. Sybase Inc. All rights reserved. DisplayEveryNLabels

View this book as PDF