EZ
Up Prev Next Contents


3.15 ListBoxes

A ListBox contains a list of items formatted into rows. When one of the items is selected, it is highlighted. When a double click of mouse button 1 occures on an item, the callbacks of the listbox are invoked.

The contents of a listbox is scrollable in both directions.

If a listbox is configured to have a pixmap label, the pixmap will be used as the background tile for the listbox.

A listbox is created by invoking EZ_CreateWidget with type EZ_WIDGET_TEXT or by calling

EZ_Widget *EZ_CreateListBox(EZ_Widget *parent, int hscrollbar,

int vscrollbar)

A ListBox is a composite widget, it has three components. An internal listBox, a horizontal scrollbar and a vertical scrollbar. To retrieve these internal components, use

void EZ_GetListBoxComponents(EZ_Widget *listBox,

EZ_Widget **ilb_ret, EZ_Widget **hscrol_ret,

EZ_Widget **vscrol_ret)


HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>