puList::puList (int x, int y, int w, int h)
: puGroup(x, y)
{
+ type |= PUCLASS_LIST;
init(w, h);
}
puList::puList (int x, int y, int w, int h, char ** contents)
: puGroup(x, y)
{
+ type |= PUCLASS_LIST;
init(w, h);
newList(contents);
}
}
char *
-puList::getStringValue ()
+puList::getListStringValue ()
{
- return _contents[_list_box->getIntegerValue()];
+ int i = _list_box->getIntegerValue();
+ return i < 0 ? 0 : _contents[i];
+}
+
+int
+puList::getListIntegerValue()
+{
+ return _list_box->getIntegerValue();
}
void