You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have a fairly short XLISTBOX_MAX_STR (20 chars) used (only) within gslc_ElemXListboxDraw of the text string of the label gotten via gslc_ElemXListboxGetItem() that is often a lot smaller than the natural width of the list box (around 48 chars).
It may be an option to change the signature of gslc_ElemXListboxGetItem - to have it pass a pointer rather than copy the content of the string into a new buffer. So that gslc_ElemXListboxDraw() does not have to declare a XLISTBOX_MAX_STR buffer. (And the generated code to declare a char acTxt;[MAX_STR + 1]).
Feature Request or Enhancement
We currently have a fairly short XLISTBOX_MAX_STR (20 chars) used (only) within gslc_ElemXListboxDraw of the text string of the label gotten via gslc_ElemXListboxGetItem() that is often a lot smaller than the natural width of the list box (around 48 chars).
It may be an option to change the signature of gslc_ElemXListboxGetItem - to have it pass a pointer rather than copy the content of the string into a new buffer. So that gslc_ElemXListboxDraw() does not have to declare a XLISTBOX_MAX_STR buffer. (And the generated code to declare a char acTxt;[MAX_STR + 1]).
bool gslc_ElemXListboxGetItem(gslc_tsGui* pGui, gslc_tsElemRef* pElemRef, int16_t nItemCurSel, char**pStrItemPtr
Or alternatively - retire it and rely on gslc_ElemXListboxGetItemAddr or something similar instead.
The text was updated successfully, but these errors were encountered: