Question
Updating elements of ScrollList
Hello! I create CustomContainer1, added to it textArea1 with wildcard buffer
I added CustomContainer1 to ScrollList2 and compiled project
I added button1 and want to change item №2 in CustomContainer1 by clicking button1
I added Iteraction to button1 - clicking is calling ChangeItemName() function.
In CustomContainer1.cpp :
void CustomContainer1::SetItemName(uint16_t data)
{
Unicode::snprintf(textArea1Buffer, 20, "%d", data);
textArea1.setWildcard(textArea1Buffer);
textArea1.resizeToCurrentText();
textArea1.invalidate();
}In Screen1View.cpp:
void Screen1View::scrollList2UpdateItem(CustomContainer1& item, int16_t itemIndex)
{
uint16_t item_name_value;
item_name_value=itemIndex;
item.SetItemName(item_name_value);
}
void Screen1View::ChangeItemName(uint16_t number)
{
??????????????????????????????
}What I have to add to ChangeItemName() if I want to change some Item of ScrollList ?
CustomContainer1.SetItemName(1); - error
