adds a listbox
| 2065 | |
| 2066 | // adds a listbox |
| 2067 | newuiListBox *newuiSheet::AddListBox(int16_t w, int16_t h, int16_t id, uint16_t flags) { |
| 2068 | newuiSheet::t_gadget_desc *gadget = AddGadget(id, GADGET_LISTBOX, NULL); |
| 2069 | newuiListBox *lb = new newuiListBox; |
| 2070 | lb->Create(m_parent, id, 0, 0, w, h, flags); |
| 2071 | m_parent->RemoveGadget(lb); |
| 2072 | gadget->internal = lb; |
| 2073 | return lb; |
| 2074 | } |
| 2075 | |
| 2076 | // adds a listbox |
| 2077 | newuiComboBox *newuiSheet::AddComboBox(int16_t id, uint16_t flags) { |
no test coverage detected