cancel
Showing results for 
Search instead for 
Did you mean: 

multi container and one Click Handler

Natali
Associate III

hi

by this code click event enable for 2 Continer  and work fine

 

 

 void CNTR_A_ClickHandler(const CNTR_AntenaLevel&, const touchgfx::ClickEvent& e);	
 touchgfx::Callback<MainView, const CNTR_AntenaLevel&, const touchgfx::ClickEvent&> CNTR_A_ClickedCallback;

CNTR_AntenaLevel1.setClickAction(CNTR_A_ClickedCallback);

// *******************************
 void CNTR_B_ClickHandler(const CNTR_TempLevel&, const touchgfx::ClickEvent& e);	
 touchgfx::Callback<MainView, const CNTR_TempLevel&, const touchgfx::ClickEvent&> CNTR_B_ClickedCallback;
 CNTR_TempLevel1.setClickAction(CNTR_B_ClickedCallback); 

 

but i have 14 Container   in this method i have to add many code line for each container for "Click Event". is it possible use one container Clicked Callback for multi type of container?

 

 

0 REPLIES 0