Closed mikigal closed 9 months ago
just put tooltip after your widget.
package main
import (
"github.com/AllenDang/giu"
g "github.com/AllenDang/giu"
)
var content bool
func loop() {
g.SingleWindow().Layout(
giu.Checkbox("I'm a checkbox", &content),
giu.Tooltip("I'm a tooltip!"),
)
}
func main() {
wnd := g.NewMasterWindow("Hello world", 400, 200, 0)
wnd.Run(loop)
}
Oh, I tried only adding it before checkbox Thanks for fast response!
No problem! issue speedrun :smile:
Hello! I want to add tooltip to one of widgets (message which is displayed on hover). I found
giu.Tooltip
widget, but I have no idea how can I bind it to checkbox.How can I do it?