List Box Format Properties

Border and ClientEdge

These properties are functionally the same as those for text boxes.

DisableNoScroll Property

The DisableNoScroll property sets or gets whether the list box shows a disabled scroll bar when it does not contain enough items to fill the visible space.

bMode = ListBox.DisableNoScroll
ListBox.DisableNoScroll = bMode

Element

Description

bMode

True indicates that a disabled scrollbar is shown when not enough items are present; false indicates that no scrollbar is shown.

HorizontalScroll and VerticalScroll

These properties are functionally the same as those for text boxes.

ModalFrame and StaticEdge

The ModalFrame property sets or gets a value that determines whether a modal frame surrounds the list box, appearing as a raised, three-dimensional edge. The StaticEdge property sets or gets whether a static edge is used.

bMode = ListBox.StaticEdge
ListBox.StaticEdge = bMode

bMode = ListBox.ModalFrame
ListBox.ModalFrame = bMode

Element

Description

bMode

True indicates that the list box uses the formatting specified; false indicates that it does not.

NoIntegralHeight Property

The NoIntegralHeight property gets or sets whether the list box partially displays list entries extending above or below the edge of the list box.

bMode = ListBox.NoIntegralHeight
ListBox.NoIntegralHeight = bMode

Element

Description

bMode

True indicates that the control will only display full list entries; False indicates that the control will display part of an entry which extends above or below the edge of the list box.

RightAlignText

This property is functionally the same as for text boxes.

Sort Property

The Sort property sets or gets whether the list box items are displayed in alphabetical order. Affects display only; internally, items remain in original order for purposes of indexing.

bMode = ListBox.Sort
ListBox.Sort = bMode

Element

Description

bMode

True indicates that contents of list box will be sorted; false indicates that contents appear in order of entry in the script.

Transparent Property

The Transparent property sets or gets whether the control "underneath" is visible.

bMode = ListBox.Transparent
ListBox.Transparent = bMode

Element

Description

bMode

True indicates that the list box is transparent; false indicates that it is solid.