How do you update a textArea wildcard in a custom container from main.c?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-04-04 3: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();
}
Labels:
- Labels:
-
TouchGFX
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-04-04 4:52 AM
