This section specifies the exact usage for each API function.
Function change the items list using by list box.
- Parameters
-
pThis | - pointer to the list box object |
pItems | - pointer to the new item list |
- Returns
- none
- Note
- none
Definition at line 637 of file d4d_list_box.c.
void D4D_ListBoxEnsureVisible |
( |
D4D_OBJECT * |
pThis | ) |
|
Function ensure that the selected item in list will be scrolled to visible area.
- Parameters
-
pThis | - pointer to the list box object |
- Returns
- none
- Note
- none
Definition at line 494 of file d4d_list_box.c.
Function finds the index of items with specified user data.
- Parameters
-
pThis | - pointer to the list box object |
pUser | - user data that is used to look for the item index (must match) |
- Returns
- index of item if it's found, if not, it returns -1.
- Note
- none
Definition at line 574 of file d4d_list_box.c.
Function returns the current selected item index.
- Parameters
-
pThis | - pointer to the list box object |
- Returns
- index on current selct item
- Note
- none
Definition at line 516 of file d4d_list_box.c.
Function gets the count of list box items.
- Parameters
-
pThis | - pointer to the list box object |
- Returns
- count of list box items.
- Note
- none
Definition at line 560 of file d4d_list_box.c.
Function gets the current using item list.
- Parameters
-
pThis | - pointer to the list box object |
- Returns
- pointer to current using item list
- Note
- none
Definition at line 655 of file d4d_list_box.c.
Function gets the selected item text.
- Parameters
-
pThis | - pointer to the list box object |
- Returns
- pointer to selected item text
- Note
- none
Definition at line 607 of file d4d_list_box.c.
Function gets the text of item choosed by item index.
- Parameters
-
pThis | - pointer to the list box object |
ix | - index to item array |
- Returns
- pointer to item text
- Note
- It returns none if the input index is out of list box range.
Definition at line 620 of file d4d_list_box.c.
Function gets the selected item user data.
- Parameters
-
pThis | - pointer to the list box object |
- Returns
- user data of selected item.
- Note
- none
Definition at line 595 of file d4d_list_box.c.
Function select new item by index.
- Parameters
-
pThis | - pointer to the list box object |
ix | - index of item that should be selected |
- Returns
- none
- Note
- none
Definition at line 533 of file d4d_list_box.c.