adds a listbox
| 2075 | |
| 2076 | // adds a listbox |
| 2077 | newuiComboBox *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 |
| 2087 | char *newuiSheet::AddEditBox(const char *title, int16_t maxlen, int16_t w, int16_t id, int16_t flags, bool on_escape_quit) { |
no test coverage detected