Mode  Multiline

Chapter 3: Property Descriptions and Usage

MultiSelect

Applies to

ListBox, PictureListBox controls

Description

The MultiSelect property specifies whether users can select multiple items in the list box at one time. When it is enabled, users can select multiple items by clicking them, and you can call SetState in script to set the state of each list box item. When MultiSelect is not enabled, users cannot select multiple items at once, and you must use SelectItem instead of SetState to select an item in script.

If MultiSelect and ExtendedSelect are both enabled, then the behavior of ExtendedSelect takes precedence. For ExtendedSelect, the user must press Shift or Ctrl when clicking additional items.

Usage


In a painter

StepsTo enable multiple selections from the list:

  1. Select the Multi Select check box on the General page of the control’s Properties view.


In scripts

The MultiSelect property takes a boolean value. The following example allows multiple selections in the ListBox lb_1.

lb_1.MultiSelect = TRUE

See also

SetState





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

View this book as PDF