Overwriting of numbers when counter is increment or decrement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-16 7:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-17 1: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-17 6:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-18 8:38 PM
when I run my program on Discovery Board display image appears like crashes without colour I attached photo image.
So why this display showing that type of image please guide me about this issue.
please find attachment
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-18 11:41 PM
Hi @DMane​,
It seems that the system did not correctly attach your documents, please reattach than again.
/Anders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-18 11:51 PM
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-21 10:25 AM
when I run the program the display showing image overwrite on previously run program image .
How to solve that overwriting issue please suggest me
