cancel
Showing results for 
Search instead for 
Did you mean: 

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

VKost.3
Associate II
 
4 REPLIES 4
MM..1
Chief III

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

VKost.3
Associate II

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
Chief III

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
Associate II

Hi,

scrollWheelListItems[containerIndex].yourcustomsetcolor(1234);

How to find the container index?

I have the following settings:

scrollWheel.setNumberOfItems(100);

touchgfx::DrawableListItems<ChannelContainer, 2> scrollWheelListItems;