Skip to main content
KKark
Associate
May 2, 2019
Question

Callback example for Scroll Wheel

  • May 2, 2019
  • 2 replies
  • 885 views

Is there an example of how to specify and use the callback ​functions for the Scroll Wheel? And how can I get the currently selected item, if not via the callback. I found getSelectedItem() in the documentation, but it seems to be protected.

This topic has been closed for replies.

2 replies

KKark
KKarkAuthor
Associate
May 3, 2019

​I found a solution on to the problem with calling getSelectedItem(). I created a method inside the user defined ScrollWheel code to get the selected item from the base class.

Martin KJELDSEN
Principal III
May 3, 2019

Hi @KKark​,

Glad you found a solution :) Sometimes creating your own specialized version is the way to go.

Best regards,

Martin