Skip to main content
VKost.3
Associate III
Jan 17, 2022 5:49 AM UTC
Question

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

..

    This topic has been closed for replies.

    4 replies

    MM..1
    Super User
    Jan 17, 2022 1:06 PM UTC

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

    VKost.3
    VKost.3Author
    Associate III
    Jan 18, 2022 2:15 AM UTC

    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
    Jan 18, 2022 1:08 PM UTC

    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
    Mar 26, 2022 6:01 AM UTC

    Hi,

    scrollWheelListItems[containerIndex].yourcustomsetcolor(1234);

    How to find the container index?

    I have the following settings:

    scrollWheel.setNumberOfItems(100);

    touchgfx::DrawableListItems<ChannelContainer, 2> scrollWheelListItems;