List Boxes


List boxes display scrollable lists to the user. There are several reasons you might use a list box over a combo box. List boxes can be configured to allow the user to select multiple items. List boxes are also handy if the user will be manipulating list data, as in the Function Mover sample program. There are a number of functions included in WinX for managing the items in a list box.

List box dragging

You can allow the user to drag items in a list box by calling the WinXListBox_EnableDragging function. When the user drags an item, the onDrag callback is invoked multiple times to give you control over the dragging. Note that WinX doesn't move items when dragging is complete, that is your responsibility.

Related Links

WinXAddListBox
WinXListBox_AddItem
WinXListBox_RemoveItem
WinXListBox_GetSelection
WinXListBox_SetSelection
WinXListBox_GetIndex
WinXListBox_GetItem$
WinXListBox_EnableDragging