debian/andlabs/label.go

20 lines
312 B
Go
Raw Normal View History

2024-01-01 16:11:54 -06:00
package main
import (
"go.wit.com/gui/toolkits/tree"
"go.wit.com/dev/andlabs/ui"
_ "go.wit.com/dev/andlabs/ui/winmanifest"
2024-01-01 16:11:54 -06:00
)
func newLabel(p, n *tree.Node) {
if notNew(n) { return }
2024-01-01 16:11:54 -06:00
newt := new(guiWidget)
c := ui.NewLabel(n.GetLabel())
2024-01-01 16:11:54 -06:00
newt.uiLabel = c
newt.uiControl = c
n.TK = newt
place(p, n)
2024-01-01 16:11:54 -06:00
}