cancel
Showing results for 
Search instead for 
Did you mean: 

How to distinguish which custom container was clicked?

V.H
Senior

Hello,

I have a custom container with clicklistener, and I add two of this in my screen.

How to distinguish which custom container was clicked?

void CustomContainer::boxClickHandler(const touchgfx::Box& b, const ClickEvent& evt)

{

if (ClickEvent::PRESSED == evt.getType())

{

// How to distinguish which custom container was clicked?

...

}

else{}

}

1 ACCEPTED SOLUTION

Accepted Solutions
V.H
Senior

I solved the problem by using 'this' parameter.

View solution in original post

1 REPLY 1
V.H
Senior

I solved the problem by using 'this' parameter.