Skip to main content
Xzhiy.1
Associate II
July 15, 2022
Solved

Is ListLayout in ScrollableContainer has ability to identify one of drawables added before, means to find out which drawable was clicked and transfer click event to that drawalbe ?

  • July 15, 2022
  • 2 replies
  • 1126 views

I read some demo code, the result is YES. am I right?

This topic has been closed for replies.
Best answer by Yoann KLEIN

Hello @Xzhiy.1​ ,

That should be totally doable.

You can get inspiration from the Scroll List & Wheel Example available in TouchGFXDesigner.

This example shows how to change a Bitmap, based on clicks on items inside a ScrollList or ScrollWheel.

In your case, you are using a ScrollableContainer and a ListLayout, but the same methods and attributes should be available, maybe just with another name.

Let me know how it's going,

/Yoann

2 replies

Yoann KLEIN
Yoann KLEINBest answer
ST Employee
July 18, 2022

Hello @Xzhiy.1​ ,

That should be totally doable.

You can get inspiration from the Scroll List & Wheel Example available in TouchGFXDesigner.

This example shows how to change a Bitmap, based on clicks on items inside a ScrollList or ScrollWheel.

In your case, you are using a ScrollableContainer and a ListLayout, but the same methods and attributes should be available, maybe just with another name.

Let me know how it's going,

/Yoann

Yoann KLEINST Software Developer | TouchGFX
Xzhiy.1
Xzhiy.1Author
Associate II
July 18, 2022

Thank you, Yoann KLEIN,

That is very good design for me to write code easy, only focus on callbak of drawables, NO need to find out which is pressed by myself, your answer make me clear about that.