20 #ifndef PAWS_COMBO_BOX_HEADER 21 #define PAWS_COMBO_BOX_HEADER 60 bool Setup(iDocumentNode* node);
83 upButtonPressed =
name;
87 downButtonPressed =
name;
131 csString text, upButton, upButtonPressed, downButton, downButtonPressed;
pawsListBox * GetChoiceList()
@@ Hack: please someone tell me how to do this better?
pawsListBoxRow * Select(int optionNum)
Selects given option in combo.
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
pawsListBoxRow * NewOption()
bool Setup(iDocumentNode *node)
Setup this widget.
void SetSorted(bool sorting)
sets if the list has to be sorted. NOTE: call before adding entries.
A simple list box widget.
void SetUpDownButtonPressedImage(const char *name)
int GetSelectedRowNum()
Returns index of selected option (-1 if none is selected.
A basic combo box widget.
void SetUpButtonPressedImage(const char *name)
void SetRowHeight(int height)
CREATE_PAWS_FACTORY(pawsComboBox)
csString GetSelectedRowString()
Returns string of selected option.
bool PostSetup()
This is called after the widget and all of it's children have been created.
void SetUpDownButtonImage(const char *name)
void OnListAction(pawsListBox *widget, int status)
Called whenever an item in a child list box is selected.
void SetNumRows(int numRows)
void SetUpButtonImage(const char *name)