My custom slider widget is not invalidating properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-12 7:31 AM
Dear Sir,
I am working with customer using TouchGFX.
Because I am BSP porting engineer, I don't know TouchGFX application in detail.
My customer is tring to implement custom Slider widget with number indicator of slider image.
But, there is flicker problem whenever slider is moved.
Please could you check that where is this problem ?
Best Regards,
JunBeom Kim / EmbedCoreTech.
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-30 2:12 AM
What i think is happening is that, since you want to update the images all the time, you're basically resetting the "viewport" even if your slider has a viewport of the background image which is 50%, so the glitches you see should be happening around each time you change numbers on the knob. I've verified this in your project.
I guess it's not designed to be used that way. You could create a specialized class that can change only the knob image for the slider and does nothing else. Currently you can only set all the images at once, because you're not expected to change them after init.
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-30 1:47 AM
Hi @JunBeom Kim​,
Can you give some more detail? Is this an issue on both simulator and target?
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-30 2:00 AM
Yes, this problem is on both side. you can check this on simulator in first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-30 2:03 AM
Okay, i'll check the project when i have some extra time and get back to you.
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-30 2:12 AM
What i think is happening is that, since you want to update the images all the time, you're basically resetting the "viewport" even if your slider has a viewport of the background image which is 50%, so the glitches you see should be happening around each time you change numbers on the knob. I've verified this in your project.
I guess it's not designed to be used that way. You could create a specialized class that can change only the knob image for the slider and does nothing else. Currently you can only set all the images at once, because you're not expected to change them after init.
/Martin
