TouchGFX list items limited to 7. Howto extend?
I use on screen scrolllist and in base.hpp have
touchgfx::DrawableListItems<MenuItem, 7> scrollList1ListItems;
Where number 7 i cant change and when menu have 8 or more lines app crash.
I make more diagnostic and locate, that TouchGFX can show and scroll by touch or in simu mouse any number of items, but when my user function try call method to customcontainer app crash.
This is function for move cursor down:
void Screen4View::curdown()
{
scrollList1ListItems[cursorpos].selit(0);
if (cursorpos < scrollList1.getNumberOfItems()-1)
{
cursorpos++;
}
else cursorpos=0;
//here crash
scrollList1ListItems[cursorpos].selit(1);
scrollList1.animateToItem(cursorpos,14);
scrollList1.invalidate();
}crash on marked line when cursorpos > 6
Help.
