Skip to main content
VKost.3
Associate III
January 17, 2022
Question

how can i change text color in custom container from view, custom container is used in scroll wheel

  • January 17, 2022
  • 4 replies
  • 1177 views

..

    This topic has been closed for replies.

    4 replies

    MM..1
    Super User
    January 17, 2022

    You need create method for this in custom container class and use it...

    VKost.3
    VKost.3Author
    Associate III
    January 18, 2022

    i created a method in a custom container. I have a hardware button and want to call a container method when it is clicked. How can I do that?

    MM..1
    Super User
    January 18, 2022

    In lists is little complicated but basic code is

    scrollList1ListItems[cursorpos].yourcustomsetcolor(1234);

    this is code in screen func and this need be called from hw button check... for example in screenhandletick

    VKost.3
    VKost.3Author
    Associate III
    March 26, 2022

    Hi,

    scrollWheelListItems[containerIndex].yourcustomsetcolor(1234);

    How to find the container index?

    I have the following settings:

    scrollWheel.setNumberOfItems(100);

    touchgfx::DrawableListItems<ChannelContainer, 2> scrollWheelListItems;