The dump on a GuiPopupMenuCtrl reveals the following commands:
Methods:
add() - (string name, int idNum, int scheme=0)
addScheme() - (int id, ColorI fontColor, ColorI fontColorHL, ColorI fontColorSEL)
bringToFront() - set.bringToFront(object)
clear() - Clear the popup list.
delete() - obj.delete()
dump() - obj.dump()
findText() - (string text)Returns the position of the first entry containing the specified text.
forceClose() -
forceOnAction() -
getClassName() - obj.getClassName()
getCount() - set.getCount()
getExtent() - Get the width and height of the control.
getGroup() - obj.getGroup()
getHelpPage() -
getId() - obj.getId()
getMinExtent() - Get the minimum allowed size of the control.
getName() - obj.getName()
getObject() - set.getObject(objIndex)
getPixelWidth() - obj.getPixelWidth()
getPosition() -
getSelected() -
getText() -
getTextById() - (int id)
getType() - obj.getType()
getValue() -
isActive() -
isAwake() -
isMember() - set.isMember(object)
isVisible() -
listObjects() - set.listObjects();
makeFirstResponder() - (bool isFirst)
pushToBack() - set.pushToBack(object)
remove() - set.remove(obj1,...)
replaceText() - (bool doReplaceText)
resize() - (int x, int y, int w, int h)
save() - obj.save(fileName, <selectedOnly>)
schedule() - object.schedule(time, command, <arg1...argN>);
setActive() - (bool active)
setEnumContent() - (string class, string enum)This fills the popup with a classrep's field enumeration type info.
More of a helper function than anything. If console access to the field list is added, at least for the enumerated types, then this should go away..
setName() - obj.setName(newName)
setProfile() - (GuiControlProfile p)
setSelected() - (int id)
setText() - (string text)
setValue() - (string value)
setVisible() - (bool visible)
size() - Get the size of the menu - the number of entries in it.
sort() - Sort the list alphabetically.
I'll leave it to you for experiments.