summaryrefslogtreecommitdiff
path: root/textbox.go
blob: 5b416a7c63da354b545917467766d70de7e8c200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package gui

import (
	"git.wit.org/wit/gui/toolkit"
)

func (parent *Node) NewTextbox(name string) *Node {
	newNode := parent.newNode(name, toolkit.Textbox)

	newNode.Custom = func() {
		log(debugGui, "NewTextbox changed =", name)
	}

	a := newAction(newNode, toolkit.Add)
	sendAction(a)
	return newNode
}