MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / AddComboBox

Method AddComboBox

Descent3/newui_core.cpp:2077–2084  ·  view source on GitHub ↗

adds a listbox

Source from the content-addressed store, hash-verified

2075
2076// adds a listbox
2077newuiComboBox *newuiSheet::AddComboBox(int16_t id, uint16_t flags) {
2078 newuiSheet::t_gadget_desc *gadget = AddGadget(id, GADGET_COMBOBOX, NULL);
2079 newuiComboBox *cb = new newuiComboBox;
2080 cb->Create(m_parent, id, 0, 0, flags);
2081 m_parent->RemoveGadget(cb);
2082 gadget->internal = cb;
2083 return cb;
2084}
2085
2086// adds an edit box
2087char *newuiSheet::AddEditBox(const char *title, int16_t maxlen, int16_t w, int16_t id, int16_t flags, bool on_escape_quit) {

Callers 1

PltSelectShipFunction · 0.80

Calls 2

RemoveGadgetMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected