2024-12-17 07:48 AM
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?