2025-08-17 7:32 AM - edited 2025-08-17 7:35 AM
Hi,
I'm using a ScrollWheel as counter for a slicer.
The scrollwheel has 5 item with 3 drawable in customcontainers with textarea.
It has 2 member values, the actual value and the set value.
I overrided the UpdateItem callback to dinamically update the scrollwheel drawable for visualization as well as wheelAnimationEnd to update the current value during animation.
I have declared a function that set the new value to display in the counter and fires the animation to.
When called, it starts the animation transition rolling on all the number between the one it has at the beginning to the one used in the call.
The scroolwheel in always centered at position 2.
The code dinamically updates the wheel to have always the correct value displayed.
It works fine upcounting, not in downcounting.
When downcounting it stop always one before the desidered.
The internal value correctly reaches the set value in both directions but not the displayed when downcounting.
Something went wrong during the UpdateItem, only in downcounting and related to touchgfx management....
I attached the idleview files......
Have any idea about it?
It's a good solution or it works in upcounting 'cos I'm lucky?
Thank guys.