-
package main
import (
g "github.com/AllenDang/giu"
)
func loop() {
var btn = g.Button("Hello").Size(120, 40)
g.SingleWindow().Layout(btn,
g.Event().OnHover(func() {
g.Style().SetFontSize(50).To(btn).Build()
}))
}
func main() {
wnd := g.NewMasterWindow("example", 640, 480, 0)
wnd.Run(loop)
} I tried this, but it didn't work |
Beta Was this translation helpful? Give feedback.
Answered by
gucio321
Jul 13, 2022
Replies: 1 comment 10 replies
-
Ohh sadly you can't useEventHandler here... You need to use ConditionWidget or even CustomWidget. I'll write a code example for u in a while |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
Seikaijyu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ohh sadly you can't useEventHandler here... You need to use ConditionWidget or even CustomWidget. I'll write a code example for u in a while