SetWidth

>>-aListBox~SetWidth(--width--)--------------------------------><


The SetWidth method sets the internal width of the list box, in dialog units. If the internal width exceeds the width of the list box control and the list box has the HSCROLL style, the list box provides a horizontal scroll bar.

Arguments:

The only argument is:

width

The width of the list box, in dialog units.

Example:

The following example sets the internal width twice the width of the list box control:

lb = MyDialog~GetListBox(102)
if lb == .Nil then return
lb~SetWidth(lb~SizeX*2)