1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package main import ( "go.wit.com/toolkits/tree" "go.wit.com/dev/andlabs/ui" _ "go.wit.com/dev/andlabs/ui/winmanifest" ) func newLabel(p, n *tree.Node) { if notNew(n) { return } newt := new(guiWidget) c := ui.NewLabel(n.GetLabel()) newt.uiLabel = c newt.uiControl = c n.TK = newt place(p, n) }