2022-04-04 03:36 AM
Could someone show me the exact steps? I have done this below but it's not doing anything. Do I need to do something in the view.cpp too?
#include <gui/containers/topBar.hpp>
int a=5;
topBar::topBar()
{
}
void topBar::initialize()
{
topBarBase::initialize();
}
void topBar::handleTickEvent()
{
a++;
Update(a);
}
void topBar::Update(int number)
{
Unicode::snprintf(textArea1Buffer, TEXTAREA1_SIZE, "%d", 5);
textArea1.invalidate();
textArea1.resizeToCurrentTextWithAlignment();
textArea1.invalidate();
}
2022-04-04 04:52 AM