summaryrefslogtreecommitdiff
path: root/textbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'textbox.go')
-rw-r--r--textbox.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/textbox.go b/textbox.go
index 5b416a7..3c9fd36 100644
--- a/textbox.go
+++ b/textbox.go
@@ -15,3 +15,17 @@ func (parent *Node) NewTextbox(name string) *Node {
sendAction(a)
return newNode
}
+
+func (parent *Node) NewEntryLine(name string) *Node {
+ newNode := parent.newNode(name, toolkit.Textbox)
+
+ newNode.X = 1
+
+ newNode.Custom = func() {
+ log(debugGui, "NewTextbox changed =", name)
+ }
+
+ a := newAction(newNode, toolkit.Add)
+ sendAction(a)
+ return newNode
+}