2021-03-19 05:56 PM
When using selected style template, the y values are not correct. If the selected menu is in the middle, the menu elements below the selected menu starts with new 0 y coordinates. How do you create circular scroll wheel in this condition
2021-03-22 04:33 AM
Hi,
The scrollWheel widget with the "selected style " option enabled is a nightmare (to me) to work with when trying to modify the position :grinning_face_with_sweat:. The issue with it is that in reality it is using 3 scroll wheels: one above, one with the selected style, and one under it. I would suggest to use the normal scrollWheel and do the changes yourself to an item when it is supposed to be "selected". By that I mean if you wanted to have the items selected to have a red background or bigger font, then you have to do it through user code when it reaches a certain position.
It sounds annoying and difficult, but it should just be annoying depending on what you are trying to do ;)
/Romain
2021-03-22 04:50 AM
2021-03-22 09:43 AM
Thank you for the answer Romain. Is there a roadmap to fix this issue from TouchGfx? By using your suggested method, you might lose some of the animation effects during movement of scroll wheel.
I could not get your code working with my TouchGfx 4.16. I managed to get it working by setting index of each element and index of current selected element within the class of the element. If the element is in 2nd half (after the selected item), I will add an extra height to its Y (half the screen height) during the X shift calculation. It works mostly, but I see some artifacts in animation.
2021-03-23 05:50 AM
Hi,
I doubt it is to be changed in the short term. What animation effects do you have in mind ? Technically you should still be able to do what you wish but it definitely requires more code unfortunately.
/Romain