Skip to main content
Dejan Nedeljkovic
Associate III
Oct 2, 2019 2:19 PM UTC
Question

Highlight selected ScrollList Item?

Hi

Is there a possibility to highlight an item from a ScrollList?

My ScrollList contains only textAreas.

I would like to highlight it with another background color and maybe change the font of the text.

Regards

Dejan

This topic has been closed for replies.

3 replies

AME MCU Support Center BB
ST Employee
Oct 2, 2019 11:33 PM UTC

Hi Dejan,

If you can go with a scroll wheel you can specify "Selected Style Template". The article below explains how to do it:

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

With regards,

Badreddine

Dejan Nedeljkovic
Associate III
Oct 3, 2019 5:29 AM UTC

Hi @AME MCU Support Center BB​ 

Thank you for the fast response.

I've seen that with a scroll wheel it is possible to highlight the selected item.

In my case I would like to use the scroll list because I do not want to have a specfic item that is always selected. I want the user to select an item of the list by clicking on it.

Regards

Dejan

Dejan Nedeljkovic
Associate III
Oct 4, 2019 5:56 AM UTC

I have scrollListItemSelectedHandler like in the TouchGFX Example with ScrollList and ScrollWheel. Is it possible to get the item (TextContainer) so that I can set the background to visible. This would highlight the selcted item.

Regards

Dejan