Skip to main content
reniervdw1
Associate
November 27, 2019
Solved

Scroll wheel not working

  • November 27, 2019
  • 1 reply
  • 932 views

I'm still using v4.10.

I've read through the following tutorial and also looked at the example demo.

https://touchgfx.zendesk.com/hc/en-us/articles/360018398832-Scroll-Wheel

Neither the item.updateText() nor the item.setIndex() functions are recognized.

void Screen1View::scrollWheelUpdateItem(textContainer& item, int16_t itemIndex)
{
 item.updateText(itemIndex);
}
void Screen1View::scrollWheelUpdateCenterItem(textCenterContainer& item, int16_t itemIndex)
{
 item.updateText(itemIndex);
}

Can someone please shed some light. Thanks

-Renier

This topic has been closed for replies.
Best answer by reniervdw1

Hi Martin,

I've resolved the issue I had. I didn't implement the function in the container, that's why it didn't work. The example I followed were a bit unclear and didn't specify that one should implement the function within the container, stupid error from my side though.

1 reply

Martin KJELDSEN
Principal III
November 29, 2019

Can you provide a build log?

/Martin

reniervdw1
reniervdw1AuthorBest answer
Associate
November 29, 2019

Hi Martin,

I've resolved the issue I had. I didn't implement the function in the container, that's why it didn't work. The example I followed were a bit unclear and didn't specify that one should implement the function within the container, stupid error from my side though.