You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to use Events on TabItems.
Since they don't support events directly, I'm using the Event() inside the Layout.
I've basically tried all possible events, but I can't get it to fire reliably at all.
As you may be able to see when running the attached example, the OnActivate event doesn't fire at all when a TabItem is activated.
However, if I Double Click on a TabItem it will fire exactly once.
To fire another time, another Event type has to be triggered first (see Tab 4).
I've also tried using a Custom() function and the EventHandler() and the behavior is the same.
This(most likely) is because layout is built only when the tab is advice. Therefore, a similar mechanism to the TreeNodeWidget should be added (TabItem should have Event method to set EventHandler)
What happend?
Im trying to use Events on TabItems.
Since they don't support events directly, I'm using the Event() inside the Layout.
I've basically tried all possible events, but I can't get it to fire reliably at all.
As you may be able to see when running the attached example, the OnActivate event doesn't fire at all when a TabItem is activated.
However, if I Double Click on a TabItem it will fire exactly once.
To fire another time, another Event type has to be triggered first (see Tab 4).
I've also tried using a Custom() function and the EventHandler() and the behavior is the same.
Am I using it wrong, or is it broken?
giu version: v0.12.0
golang: 1.24.0
Code example
main.go
To Reproduce
Version
(latest, which?)
OS
Gentoo
The text was updated successfully, but these errors were encountered: