2019-07-14 12:42 AM
Counter is increment or decrement by pressing button the initial value is remain on text box and new value is overwrite on previous value. How to solve overwriting issue.
2019-07-15 12:01 AM
Please ensure that you have invalidated the text widget after modifying the content of the buffer.
// Update tick text and invalidate text area,
// which will result in it being redrawn.
Unicode::snprintf(tickTxtBuffer, 5, "%d", tick);
tickTxt.invalidate();
You could also have a look at our Text Example UI available from the TouchGFX Designer as an UI Template
2019-07-16 07:25 PM
2019-07-17 01:45 AM
Hi @DMane,
I understand your issue correct, it is when increasing or decreasing a number on screen, digits some times remain?
It might help by taking a look at the Button Example from the TouchGFX Designer.
/Anders
2019-07-17 06:57 AM
2019-07-18 12:23 AM
The button used is a normal button in TouchGFX.
In the designer, a "Call new virtual function" is connected to the button as an interaction.
In the screenview.cpp file the following code is executed as a callback when the button is pressed
void MainView::increaseValue()
{
if (count < 42)
{
count++;
setCount(count);
if (count == 42)
{
setLimitEffects(false, true);
}
else if (count == 1)
{
setLimitEffects(true, true);
}
}
}
/Anders
2019-07-18 08:38 PM
2019-07-18 11:41 PM
Hi @DMane,
It seems that the system did not correctly attach your documents, please reattach than again.
/Anders
2019-07-18 11:51 PM
2019-07-21 10:25 AM