ListBox IFace Control Class

 

A box that lists data. Derived from IControl.

 

            Functions

            UseVar(varname)

            Name of variable that will store currently selected item.

            varname: Name of variable to use

 

            UseSlider(control)

            Name of slider to use with control.

            control:Name of control.

 

            SliderIncImage(image)

            Increase button slider texture.

            image: Image name specification.

 

            SliderDecImage(image)

            Decrease button slider texture.

            image: Image name specification.

 

            SliderKnobImage(image)

            image: Image name specification.                     

 

            ItemConfig()

            The body of this scope is applied to all items of the list.

 

            CellSize(integer x, integer y)

            Manually set the size of each cell.

            integer x: Width

            integer y: Height

           

            AddTextItem(value, text)

            Adds text item to listbox.

            data:  value of selection.

            text: text displayed in box.

 

            SetSelected(index)

            Sets the default item selected on slider.

            index: Index number of item to set as selected.

 

            SetSelected(name)

            Sets the default item selected on slider.

            name: Name of item to set as selected.

 

            SliderPadding(integer)

            Sets the padding size for slider.

            integer: value for size.

 

            Style Attributes

            Vslider- Add a vertical slider to the list.

            NoSelection-  Disallow selection of items.

            MultiSelect- Allow multiple selection of items.

            CanClear- Allow Selection to be cleared.

            AutoScroll- AutoScroll when new items added.

 

            Geometry Attributes

            None

 

            Events

            ListBox::SelChange - The selection has changed
            ListBox::SelClear - The selection has been cleared
            ListBox::DblClick - A double click occurred on the selected item