sourcemain/tab_container

Tabbar widget event

Closed this issue · 4 comments

hi, I faced problem. I can not to catch the event of the widget located inside the tab.

Thanks for letting me know. Can you please provide a code example of the issue?

I solved this problem by using the callback to trigger the OffSet of the click event. Then on TabContainer callback I check if widget contains that Offset

Here is my code:
Inside RenderTabFrame:
Screen Shot 2022-04-22 at 22 09 55

We need caculate some variable:

Screen Shot 2022-04-22 at 22 16 09

When use TabContainer:
Screen Shot 2022-04-22 at 22 13 55

And function check click inside widget:
Screen Shot 2022-04-22 at 22 14 36

@AndroidDev68 Apologies for tagging you here. I am in need of assistance, will you be able to assist me? I want to know currentActive tab so I can change textColor of my tabs, this is not StringTab.

#4

Fixed in version 3