hgeGUIListbox class
hgeGUIListbox is a class for listbox GUI control.
To create a hgeGUIListbox object you may use this constructor:
hgeGUIListbox(
int id,
float x,
float y,
float w,
float h,
hgeFont *fnt,
DWORD tColor,
DWORD thColor,
DWORD hColor
);
Parameters
- id
- Integer identificator for the created control.
- x
- The listbox's top-left corner x-coordinate.
- y
- The listbox's top-left corner y-coordinate.
- w
- The listbox's width.
- h
- The listbox's height.
- fnt
- Pointer to the hgeFont object to be used for rendering listbox items text.
- tColor
- The color to use for rendering listbox items.
- thColor
- The color to use for rendering highlighted listbox items.
- hColor
- The color to use for rendering the stripe under highlighted listbox item.
Other methods
| AddItem |
Adds an item to the listbox. |
| DeleteItem |
Deletes an item from the listbox. |
| GetSelectedItem |
Returns the index of currently selected item. |
| SetSelectedItem |
Changes selection to the specified item. |
| GetTopItem |
Returns the index of the first displayed item. |
| SetTopItem |
Changes the first displayed item to the specified one. |
| | |
| GetItemText |
Returns the text string of the specified item. |
| GetNumItems |
Returns total number of items in the listbox. |
| GetNumRows |
Returns the number of simultaneously visible items. |
| Clear |
Removes all items from the listbox. |
Requirements
Header: hgeguictrls.h
Import library: hgehelp.lib
|