Request: Element ComboBox
Is it possible to add combobox to the library?
"+1"
@eloaders & @NickNifontov -- yes, this is a good suggestion. I have some ideas in how a ComboBox can be implemented but please note that it may take some time before I can start on it. thanks!
Long overdue update! Now that the extended elements have been split out #121, it is much easier to add new element types. That said, I have now begun working on developing the ListBox and ComboBox elements.
- An
XListBoxelement has now been created (currently in development branch testing) - An
XComboBoxelement will be created next. The XComboBox would be modeled after the standard dropdown listbox. This component would probably utilize the compound element mechanism.
The new XListbox element has been merged into the master, available by including elem/XListbox.h
Example screenshot of single-column XListbox control with scrollbar integration:

- The above single-column example (w/ scrollbar interaction) is provided in
ex31_ard_listbox. - A multi-column example (w/o scrollbars) has been provided in
ex30_ard_listbox.
Sample code to create a 3 column XListbox:
#include "elem/XListbox.h"
// Allocate storage for listbox element and buffer
gslc_tsXListbox m_sListbox;
static uint8_t m_pXListboxBuf[BUF_LEN];
// Create XListbox control
m_pElemListbox = m_pXListboxCreate(pGui, E_LISTBOX, E_PG_MAIN, &m_sListbox, rRect, E_FONT, m_pXListboxBuf, BUF_LEN, 0);
gslc_ElemXListboxSetSize(pGui, m_pElemLIstbox, 5, 3); // 5 Rows, 3 columns
// Add items
gslc_ElemXListboxAddItem(pGui, m_pElemListbox, "Item1");
gslc_ElemXListboxAddItem(pGui, m_pElemListbox, "Item2");
...